HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
Event.py
Go to the documentation of this file.
1 '''
2 Created on Feb 25, 2014
3 
4 @author: igor
5 '''
6 
7 from transport.UIDGenerator import UIDGenerator
8 
9 
13 class Event(object):
14 
15 
16  def __init__(self, uid, eventType, eventObj):
17  '''
18  Constructor
19  '''
20  self.uid = uid
21  self.connect_name = "" #set later
22  self.connect_identity = ""
23  self.cookie = None
24  self.eventType = eventType
25  self.eventObj = eventObj
26 
27 
28 
29 class EventBuilder(object):
30 
31 
32  def __init__(self):
34 
35 
36  def build(self, eventType, eventObj):
37  event_uid = self.uidGenerator.get_uid()
38  return Event(event_uid, eventType, eventObj)
def build(self, eventType, eventObj)
Definition: Event.py:36
Wrapper for structures passed between components of dtm.
Definition: Event.py:13
def __init__(self, uid, eventType, eventObj)
Definition: Event.py:16
UIDGenerator is used to generate unique message id.
Definition: UIDGenerator.py:14