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

# Class MySqlSendEventThread

source code

             object --+
                      |
     threading._Verbose --+
                          |
           threading.Thread --+
                              |
    MySqlSendEventMixin --+   |
                          |   |
             MySqlSendEvent --+
                              |
                             MySqlSendEventThread

Wrapper around MySQL database connection

Instance Methods | [hide private]
__init__(self, zem) | source code
string |
sendEvent(self, evt) Called from main thread to put an event on to the send queue. | source code
run(self) Main event loop | source code
stop(self) Called from main thread to stop this thread. | source code
Inherited from `threading.Thread`: `__repr__`, `daemon`, `getName`, `ident`, `isAlive`, `isDaemon`, `is_alive`, `join`, `name`, `setDaemon`, `setName`, `start` Inherited from `threading.Thread` (private): `_set_daemon`, `_set_ident` Inherited from `threading._Verbose` (private): `_note` Inherited from `MySqlSendEvent`: `getFieldList` Inherited from `MySqlSendEventMixin`: `applyDeviceContext`, `applyEventContext`, `buildClearUpdate`, `buildDetailInsert`, `buildInsert`, `buildStatusInsert`, `doSendEvent`, `escape`, `eventDataMaps`, `getNetworkRoot` Inherited from `MySqlSendEventMixin` (private): `_findByIp`, `_sendHeartbeat`

Class Variables | [hide private]
| running = `True`
Inherited from `MySqlSendEvent`: `backend`, `copyattrs`

Method Details | [hide private]

### __init__(self, zem) (Constructor) | source code
Overrides: MySqlSendEvent.__init__

### sendEvent(self, evt) | source code
Called from main thread to put an event on to the send queue. Parameters: `event` - an event Returns: string event id or None Overrides: MySqlSendEventMixin.sendEvent

### run(self) | source code
Main event loop Overrides: threading.Thread.run

### stop(self) | source code
Called from main thread to stop this thread. Overrides: MySqlSendEvent.stop