2 Created on Feb 12, 2014 7 import Consts
as consts
40 wrapper for Session fields array of execute task 42 def __init__(self, tmode, ctype=TYPE_HOST_SHELL, maxExecutionTime=0):
56 self.
cleanup = consts.TERMINATE_DATA_DELETE
58 self.
cleanup = consts.TERMINATE_DATA_SAVE
90 super(TaskExecuteStruct, self).
__init__()
102 self.
files.append(dict({
"name" : name,
113 super(ResponseItem, self).
__init__()
138 super(TaskResponse, self).
__init__()
161 super(TaskExecuteRequest, self).
__init__(consts.EXECUTE_TASK, tId)
172 super(TaskCheckRequest, self).
__init__(consts.CHECK_TASK_STATE, tId)
174 self.
data = dict({
"type" : info_type})
183 super(TaskGetDataRequest, self).
__init__(consts.GET_TASK_DATA, tId)
185 self.
data = dict({
"type" : info_type})
195 super(TaskTerminateRequest, self).
__init__(consts.TERMINATE_TASK, tId)
197 self.
data = dict({
"alg":consts.TERMINATE_ALGORITHM_DEFAULT,
201 "cleanup":consts.TERMINATE_DATA_DELETE
212 super(TaskDeleteRequest, self).
__init__(consts.DELETE_TASK, tId)
wrapper for task response item
def __init__(self, ctype, cid)
constructor
Base command for all dre request command.
wrapper for TaskExecuteStruct
def __init__(self, items)
def add_evn_pair(self, param_name, param_value)
wrapper for Session fields array of execute task
def __init__(self, ttl, data)
def __init__(self, tId, info_type)
wrapper for Limits fields array of execute task
wrapper for task response
def __init__(self, tmode, ctype=TYPE_HOST_SHELL, maxExecutionTime=0)
def __init__(self, tId, info_type)
def add_files(self, name, data, action)
simple wrapper for addion files fields
Get task's data request.