Package gofer :: Package agent :: Module main :: Class Agent
[hide private]
[frames] | no frames]

Class Agent

source code

Gofer (main) agent. Starts (2) threads. A thread to run actions and another to monitor/update plugin sessions on the bus.

Instance Methods [hide private]
 
__init__(self, plugins) source code
 
start(self, block=True)
Start the agent.
source code
ActionThread
__startActions(self, plugins)
Start actions on enabled plugins.
source code
Scheduler
__startScheduler(self, plugins)
Start the RMI scheduler.
source code
 
__startPlugins(self, plugins)
Start the plugins.
source code
Class Variables [hide private]
  WAIT = None
hash(x)
Method Details [hide private]

__init__(self, plugins)
(Constructor)

source code 
Parameters:
  • plugins (list) - A list of loaded plugins

__startActions(self, plugins)

source code 

Start actions on enabled plugins.

Parameters:
  • plugins (list) - A list of loaded plugins.
Returns: ActionThread
The started action thread.

__startScheduler(self, plugins)

source code 

Start the RMI scheduler.

Parameters:
  • plugins (list) - A list of loaded plugins.
Returns: Scheduler
The started scheduler thread.

__startPlugins(self, plugins)

source code 

Start the plugins. Create and start a plugin monitor thread for each plugin.

Parameters:
  • plugins (list) - A list of loaded plugins.