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
transport.Request.Request.route
route
Definition:
Request.py:28
transport.Request.Request.add_data
def add_data(self, data)
add data to the message's body
Definition:
Request.py:43
transport.Request.Request.connect_identity
connect_identity
Definition:
Request.py:27
transport.Request.Request.get_uid
def get_uid(self)
return uid of the message
Definition:
Request.py:35
transport.Request.Request.uid
uid
Definition:
Request.py:24
transport.Request.Request.body
body
Definition:
Request.py:25
transport.Request.Request
It's a wrapper similar to zmsg.hpp in sense of encapsulation of hce message structure.
Definition:
Request.py:11
transport.Request.Request.get_body
def get_body(self)
return body of the message
Definition:
Request.py:50
transport.Request.Request.__init__
def __init__(self, uid)
constructor
Definition:
Request.py:23
transport.Request.Request.task_type
task_type
Definition:
Request.py:29
sources
hce
transport
Request.py
Generated on Fri Nov 24 2017 18:54:03 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13