++ed by:
AERO GBOUGARD

2 PAUSE users
1 non-PAUSE user.

Guillaume Bougard

NAME

FusionInventory::Agent::Task - Base class for agent task

DESCRIPTION

This is an abstract class for all task performed by the agent.

METHODS

new(%params)

The constructor. The following parameters are allowed, as keys of the %params hash:

logger

the logger object to use (default: a new stderr logger)

config
target
storage
prologresp
client
deviceid

isEnabled()

This is a method to be implemented by each subclass.

run()

This is a method to be implemented by each subclass.

abort()

Abort running task immediatly.

getModules($prefix)

Return a list of modules for this task. All modules installed at the same location than this package, belonging to __PACKAGE__ namespace, will be returned. If optional $prefix is given, base search namespace will be __PACKAGE__/$prefix instead.