DESCRIPTIONThis is the object used by the agent to schedule various targets.
new(%params)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)
addTarget()Add a new target to schedule.
getNextTarget()Get the next scheduled target.
getTargets()Get all targets.