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_serializable.py
Go to the documentation of this file.
1 '''
2 HCE project, Python bindings, DRCE module
3 Event objects functional tests.
4 
5 @package: drce
6 @author bgv bgv.hce@gmail.com
7 @link: http://hierarchical-cluster-engine.com/
8 @copyright: Copyright © 2015 IOIX Ukraine
9 @license: http://hierarchical-cluster-engine.com/license/
10 @since: 0.1
11 '''
12 
13 
14 from drce.Commands import TaskExecuteRequest
15 from drce.Commands import TaskCheckRequest
16 from drce.Commands import TaskGetDataRequest
17 from drce.Commands import TaskTerminateRequest
18 from drce.Commands import TaskDeleteRequest
19 
21 print c.toJSON()
22 
23 c = TaskCheckRequest(125, 0)
24 print c.toJSON()
25 
26 c = TaskGetDataRequest(125, 0)
27 print c.toJSON()
28 
29 c = TaskTerminateRequest(125)
30 print c.toJSON()
31 
32 c = TaskDeleteRequest(125)
33 print c.toJSON()
Check task request.
Definition: Commands.py:169
Delete task request.
Definition: Commands.py:208
wrapper for task request
Definition: Commands.py:158
Get task's data request.
Definition: Commands.py:180
Terminate task request.
Definition: Commands.py:191