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
|
Convertor which used to convert Task*Reques to json and TaskResponse from json. More...
Public Member Functions | |
def | to_json (self, taskRequestObj, log=None) |
convert from Task*Reques object to json string More... | |
def | from_json (self, json_string) |
convert from json string to TaskResponse More... | |
Convertor which used to convert Task*Reques to json and TaskResponse from json.
Convert Request to json and restore Response from json
Definition at line 161 of file CommandConvertor.py.
def drce.CommandConvertor.CommandConvertor.from_json | ( | self, | |
json_string | |||
) |
convert from json string to TaskResponse
json_string | json string |
Definition at line 198 of file CommandConvertor.py.
def drce.CommandConvertor.CommandConvertor.to_json | ( | self, | |
taskRequestObj, | |||
log = None |
|||
) |
convert from Task*Reques object to json string
cmdObj | an instance of Task*Request object |
Definition at line 170 of file CommandConvertor.py.