FusionInventory::Agent::Scheduler - A target scheduler
This is the object used by the agent to schedule various targets.
The constructor. The following parameters are allowed, as keys of the %params hash:
the logger object to use (default: a new stderr logger)
a flag to ensure targets whose next scheduled execution date has not been reached yet will get ignored. Only useful when background flag is not set.
a number of second to wait before returning each target. Only useful when background flag is not set.
a flag to set if the agent is running as a resident program, aka a daemon in Unix world, and a service in Windows world (default: false)
Add a new target to schedule.
Get the next scheduled target.
Get all targets.