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
Request.py
Go to the documentation of this file.
1 '''
2 Created on Feb 5, 2014
3 
4 @author: igor
5 '''
6 
7 
8 
11 class Request(object):
12  '''
13  It's a wrapper similar to zmsg.hpp in sense of encapsulation of hce
14  message structure
15  '''
16 
17 
18 
23  def __init__(self, uid):
24  self.uid = uid
25  self.body = []
26  self.body.append(uid)
27  self.connect_identity = None
28  self.route = None
29  self.task_type = 0
30 
31 
32 
35  def get_uid(self):
36  return self.uid
37 
38 
39 
43  def add_data(self, data):
44  self.body.append(data)
45 
46 
47 
50  def get_body(self):
51  return self.body
def add_data(self, data)
add data to the message's body
Definition: Request.py:43
def get_uid(self)
return uid of the message
Definition: Request.py:35
It's a wrapper similar to zmsg.hpp in sense of encapsulation of hce message structure.
Definition: Request.py:11
def get_body(self)
return body of the message
Definition: Request.py:50
def __init__(self, uid)
constructor
Definition: Request.py:23