FusionInventory::Agent::Target(3)

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)

  setShared()
Ensure the target can be shared among threads

  getNextRunDate()
Get nextRunDate attribute.

  setNextRunDate($nextRunDate)
Set next execution date.

  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.

  getDescription()
Return a string description of the target.

  getStatus()
Return a string status for the target.