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

Module main

source code

Classes [hide private]
  ActionThread
Run actions independently of main thread.
  Snapshot
Plugin property snapshot.
  PluginMonitorThread
Run actions independantly of main thread.
  Agent
Gofer (main) agent.
  AgentLock
Agent lock ensure that agent only has single instance running.
Functions [hide private]
 
start(daemon=True)
Agent main.
source code
 
eager() source code
 
usage()
Show usage.
source code
 
daemonize(lock)
Daemon configuration.
source code
 
setupLogging()
Set logging levels based on configuration.
source code
 
profile()
Code profiler using YAPPI http://code.google.com/p/yappi
source code
 
main() source code
Variables [hide private]
  log = getLogger(__name__)
  cfg = Config()
Function Details [hide private]

start(daemon=True)

source code 

Agent main. Add recurring, time-based actions here. All actions must be subclass of action.Action.