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
ftest_drce_cluster_requests.py
Go to the documentation of this file.
1
'''
2
Created on Mar 21, 2014
3
4
@author: igor
5
'''
6
7
from
drce.DRCEManager
import
DRCEManager, HostParams
8
from
drce.Commands
import
TaskExecuteRequest
9
10
11
if
__name__ ==
'__main__'
:
12
timeout = 1000
13
request_id =
"1"
14
host_params =
HostParams
(
"127.0.0.1"
, 10021)
15
task_execute_request =
TaskExecuteRequest
(request_id)
16
17
drceManager =
DRCEManager
()
18
drceManager.activate_host(host_params)
19
20
taskResponse = drceManager.process(task_execute_request, timeout)
21
22
print
"response item count "
, len(taskResponse.items)
23
for
item
in
taskResponse.items:
24
print
item.__dict__
25
26
print
"OK"
27
28
drce.Commands
Definition:
Commands.py:1
drce.Commands.TaskExecuteRequest
wrapper for task request
Definition:
Commands.py:158
drce.DRCEManager
Definition:
DRCEManager.py:1
drce.DRCEManager.HostParams
HostParams
Definition:
DRCEManager.py:23
drce.DRCEManager.DRCEManager
Definition:
DRCEManager.py:29
sources
hce
ftests
ftest_drce_cluster_requests.py
Generated on Fri Nov 24 2017 18:54:00 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13