Trees | Indices | Help |
|
---|
|
Module with helper classes and functions for daemons
|
|||
SchedulerBreakout Exception used to get out of the scheduler loop |
|||
AsyncoreScheduler Event scheduler integrated with asyncore |
|||
GanetiBaseAsyncoreDispatcher Base Ganeti Asyncore Dispacher |
|||
AsyncStreamServer A stream server to use with asyncore. |
|||
AsyncTerminatedMessageStream A terminator separated message stream asyncore module. |
|||
AsyncUDPSocket An improved asyncore udp socket. |
|||
AsyncAwaker A way to notify the asyncore loop that something is going on. |
|||
Mainloop Generic mainloop for daemons |
|
|||
|
|||
|
|||
|
|
|||
_DEFAULT_RUN_USER = "root"
|
|||
_DEFAULT_RUN_GROUP = "root"
|
Imports: asyncore, asynchat, collections, grp, os, pwd, signal, logging, sched, time, socket, select, sys, utils, constants, errors, netutils
|
Asyncore-compatible scheduler delay function. This is a delay function for sched that, rather than actually sleeping, executes asyncore events happening in the meantime. After an event has occurred, rather than returning, it raises a SchedulerBreakout exception, which will force the current scheduler.run() invocation to terminate, so that we can also check for signals. The main loop will then call the scheduler run again, which will allow it to actually process any due events. This is needed because scheduler.run() doesn't support a count=..., as asyncore loop, and the scheduler module documents throwing exceptions from inside the delay function as an allowed usage model. |
Format a client's address
|
Shared main function for daemons.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:22 2010 | http://epydoc.sourceforge.net |