bareos: master 82119847

Author Committer Branch Timestamp Parent
franku franku master 2019-10-09 17:14 master a8d69c0b Pending
Changeset dird/tests: refactore the scheduler code

- updated json file
- added ScheduleOnClientConnectInterval to director config
- replace dlist by priority_queue in scheduler and add test
- move Scheduler code into separate class with private implementation
- refactore code of scheduler and improve test
- add exception in case of invalid argument
- add scheduler unit-test and test-config
- add DateTimeBitfield to RunResource
- moved bitfield members to a separate struct to reduce the scope of
  the class RunResource when calling subroutines
- systemtests: add scheduler-backup-test
- rename a class to RunHourValidator
- negate the return code of IsAutomaticSchedulerJob
- set the default wait interval explicitly for the scheduler
- add a comment in a scheduler job item test
- call tzset() right after start in all daemons and tools
- later calls to localtime_r need the timezone and daylight settings
  already initialized from the TZ environment variable
- remove trailing undercores from public member variables
- change JobResource directive meaningful and update json file
mod - core/src/console/console.cc Diff File
mod - core/src/dird/CMakeLists.txt Diff File
add - core/src/dird/date_time_bitfield.h Diff File
mod - core/src/dird/dbcheck.cc Diff File
mod - core/src/dird/dird.cc Diff File
mod - core/src/dird/dird_conf.cc Diff File
mod - core/src/dird/dird_conf.h Diff File
mod - core/src/dird/fd_cmds.cc Diff File
mod - core/src/dird/job.cc Diff File
mod - core/src/dird/job.h Diff File
mod - core/src/dird/run_conf.cc Diff File
add - core/src/dird/run_hour_validator.cc Diff File
add - core/src/dird/run_hour_validator.h Diff File
mod - core/src/dird/scheduler.cc Diff File
mod - core/src/dird/scheduler.h Diff File
add - core/src/dird/scheduler_job_item_queue.cc Diff File
add - core/src/dird/scheduler_job_item_queue.h Diff File
add - core/src/dird/scheduler_private.cc Diff File
add - core/src/dird/scheduler_private.h Diff File
add - core/src/dird/scheduler_system_time_source.h Diff File
add - core/src/dird/scheduler_time_adapter.h Diff File
mod - core/src/dird/testfind.cc Diff File
mod - core/src/dird/ua_output.cc Diff File
mod - core/src/dird/ua_status.cc Diff File
mod - core/src/filed/filed.cc Diff File
mod - core/src/qt-tray-monitor/tray-monitor.cc Diff File
mod - core/src/stored/bcopy.cc Diff File
mod - core/src/stored/bextract.cc Diff File
mod - core/src/stored/bls.cc Diff File
mod - core/src/stored/bscan.cc Diff File
mod - core/src/stored/btape.cc Diff File
mod - core/src/stored/stored.cc Diff File
mod - core/src/tests/CMakeLists.txt Diff File
mod - core/src/tests/bsock_test.cc Diff File
mod - core/src/tests/client-initiated-reconnect.cc Diff File
mod - core/src/tests/configs/client-initiated-reconnect/bareos-dir.d/job/backup-bareos-fd.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/catalog/MyCatalog.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/client/bareos-fd.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/console/bareos-mon.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/director/bareos-dir.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/fileset/Catalog.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/fileset/LinuxAll.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/fileset/SelfTest.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/fileset/Windows All Drives.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/job/backup-bareos-fd.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/jobdefs/DefaultJob.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/messages/Daemon.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/messages/Standard.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/pool/Differential.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/pool/Full.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/pool/Incremental.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/pool/Scratch.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/profile/operator.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/schedule/schedule.conf Diff File
add - core/src/tests/configs/scheduler-hourly/bareos-dir.d/storage/File.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/catalog/MyCatalog.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/client/bareos-fd.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/console/bareos-mon.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/director/bareos-dir.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/fileset/Catalog.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/fileset/LinuxAll.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/fileset/SelfTest.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/fileset/Windows All Drives.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/job/backup-bareos-fd.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/jobdefs/DefaultJob.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/messages/Daemon.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/messages/Standard.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/pool/Differential.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/pool/Full.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/pool/Incremental.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/pool/Scratch.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/profile/operator.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/schedule/schedule.conf Diff File
add - core/src/tests/configs/scheduler-on-time/bareos-dir.d/storage/File.conf Diff File
add - core/src/tests/scheduler.cc Diff File
add - core/src/tests/scheduler_job_item_queue.cc Diff File
add - core/src/tests/scheduler_time_source.h Diff File
mod - core/src/tools/bregex.cc Diff File
mod - core/src/tools/bscrypto.cc Diff File
mod - core/src/tools/bsmtp.cc Diff File
mod - core/src/tools/btestls.cc Diff File
mod - core/src/tools/bwild.cc Diff File
mod - core/src/tools/drivetype.cc Diff File
mod - core/src/tools/fstype.cc Diff File
mod - docs/manuals/source/include/autogenerated/bareos-dir-config-schema.json Diff File
mod - systemtests/CMakeLists.txt Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/console/bareos-mon.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/profile/operator.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/schedule/schedule.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-fd.d/director/bareos-mon.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-sd.d/device/FileStorage.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-sd.d/director/bareos-mon.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/bconsole.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/tray-monitor.d/client/FileDaemon-local.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/tray-monitor.d/director/Director-local.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/tray-monitor.d/monitor/bareos-mon.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/etc/bareos/tray-monitor.d/storage/StorageDaemon-local.conf.in Diff File
add - systemtests/tests/scheduler-backup-test/testrunner Diff File