FusionInventory::Agent::Task - Base class for agent task
This is an abstract class for all task performed by the agent.
The constructor. The following parameters are allowed, as keys of the %params hash:
the logger object to use (default: a new stderr logger)
This is a method to be implemented by each subclass.
Abort running task immediatly.
Return a list of modules for the task. All modules installed at the same location than this package, belonging to __PACKAGE__::$task namespace, will be returned. If not optional $task is given, base search namespace will be __PACKAGE__::Inventory instead.
Method to get the task remote status.
Returns the string set by setRemote() API or an empty string.
Method to set or reset the task remote status.
Without $task parameter, the API resets the remote status to an empty string.
To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FusionInventory::Agent
CPAN shell
perl -MCPAN -e shell install FusionInventory::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.