NAME
FusionInventory::Agent::Target - Abstract target
DESCRIPTION
This is an abstract class for execution targets.
METHODS
new(%params)
The constructor. The following parameters are allowed, as keys of the %params hash:
- logger
-
the logger object to use
- maxDelay
-
the maximum delay before contacting the target, in seconds (default: 3600)
- basevardir
-
the base directory of the storage area (mandatory)
getNextRunDate()
Get nextRunDate attribute.
getFormatedNextRunDate()
Get nextRunDate attribute as a formated string.
setNextRunDate($nextRunDate)
Set next execution date.
setNextRunDateFromNow($nextRunDelay)
Set next execution date from now and after $nextRunDelay seconds (0 by default).
resetNextRunDate()
Set next execution date to a random value.
getMaxDelay($maxDelay)
Get maxDelay attribute.
setMaxDelay($maxDelay)
Set maxDelay attribute.
getStorage()
Return the storage object for this target.