Package Products :: Package ZenEvents :: Module EventServer :: Class EventServer |
[hide private]
[frames] | no frames]

# Class EventServer

source code

                     object --+
                              |
       ZenUtils.CmdBase.CmdBase --+
                                  |
       ZenUtils.ZenDaemon.ZenDaemon --+
                                      |
    twisted.spread.pb.Referenceable --+
                                      |
               ZenHub.PBDaemon.PBDaemon --+
                                          |
                                         EventServer

Base class for a daemon whose primary job is to post events

Instance Methods | [hide private]
__init__(self) Initializer that takes care of basic daemon options. | source code
connected(self) | source code
model(self) | source code
configure(self) | source code
sendEvent(self, event, **kw) Add event to queue of events to be sent. | source code
useUdpFileDescriptor(self, fd) | source code
useTcpFileDescriptor(self, fd, factory) | source code
reportCycle(self) | source code
heartbeat(self) Since we don't do anything on a regular basis, just push heartbeats regularly | source code
report(self) report some simple diagnostics at shutdown | source code
buildOptions(self) Standard set of command-line options. | source code
Inherited from `ZenHub.PBDaemon.PBDaemon`: `connect`, `connectTimeout`, `connecting`, `eventService`, `generateEvent`, `getInitialServices`, `getService`, `getServiceNow`, `gotPerspective`, `loadCounters`, `pushEvents`, `pushEventsLoop`, `remote_getName`, `remote_setPropertyItems`, `remote_shutdown`, `remote_updateThresholdClasses`, `run`, `saveCounters`, `sendEvents`, `setExitCode`, `sigTerm`, `stop` Inherited from `ZenHub.PBDaemon.PBDaemon` (private): `_getPerformanceEventsChunk`, `_performanceEvents`, `_trimEventQueue` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `audit`, `becomeDaemon`, `becomeWatchdog`, `changeUser`, `convertSocketOption`, `logname`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenUtils.ZenDaemon.ZenDaemon` (private): `_sigUSR1_called` Inherited from `ZenUtils.CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `getGlobalConfigFileDefaults`, `getParamatersFromConfig`, `loadConfigFile`, `parseOptions`, `pretty_print_config_comment`, `validateConfigFile`

Class Variables | [hide private]
| name = `'EventServer'`
Inherited from `ZenHub.PBDaemon.PBDaemon`: `heartbeatEvent`, `heartbeatTimeout`, `initialServices` Inherited from `ZenHub.PBDaemon.PBDaemon` (private): `_customexitcode`, `_sendingEvents` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `pidfile` Inherited from `ZenUtils.CmdBase.CmdBase`: `doesLogging`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
Initializer that takes care of basic daemon options. Creates a PID file. Overrides: ZenUtils.CmdBase.CmdBase.__init__

### connected(self) | source code
Overrides: ZenHub.PBDaemon.PBDaemon.connected

### sendEvent(self, event, **kw) | source code
Add event to queue of events to be sent. If we have an event service then process the queue. Overrides: ZenHub.PBDaemon.PBDaemon.sendEvent (inherited documentation)

### heartbeat(self) | source code
Since we don't do anything on a regular basis, just push heartbeats regularly Overrides: ZenHub.PBDaemon.PBDaemon.heartbeat

### buildOptions(self) | source code
Standard set of command-line options. Overrides: ZenUtils.CmdBase.CmdBase.buildOptions (inherited documentation)