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

Class MySqlSendEventMixin

source code

Known Subclasses:

Mix-in class that takes a MySQL db connection and builds inserts that sends the event to the backend.

Instance Methods [hide private]
 
sendEvents(self, events)
Sends multiple events using a single publisher.
source code
string
sendEvent(self, event)
Send an event to the backend.
source code
 
_publishEvent(self, event, publisher=None)
Sends this event to the event fan out queue
source code
 
_sendHeartbeat(self, event)
Publishes a heartbeat message to the queue.
source code
Method Details [hide private]

sendEvents(self, events)

source code 

Sends multiple events using a single publisher. This prevents using a new connection for each event.

sendEvent(self, event)

source code 

Send an event to the backend.

Parameters:
  • event (Event class) - an event
Returns: string
event id or None

_sendHeartbeat(self, event)

source code 

Publishes a heartbeat message to the queue.

Parameters:
  • event (Event class) - event