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
dtm.EventObjects.CheckTaskState Class Reference

CheckTaskState event object, for check task status inside EE. More...

Inheritance diagram for dtm.EventObjects.CheckTaskState:
Collaboration diagram for dtm.EventObjects.CheckTaskState:

Public Member Functions

def __init__ (self, taskId, checkType=TYPE_SIMPLE)
 constructor initialize task's fields More...
 
def toJSON (self)
 

Public Attributes

 id
 The task Id. More...
 
 type
 The type of check. More...
 

Static Public Attributes

int TYPE_SIMPLE = 1
 
int TYPE_FULL = 2
 

Detailed Description

CheckTaskState event object, for check task status inside EE.

The CheckTaskState object used to get task status directly from EE.

Definition at line 359 of file EventObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def dtm.EventObjects.CheckTaskState.__init__ (   self,
  taskId,
  checkType = TYPE_SIMPLE 
)

constructor initialize task's fields

Parameters
taskIdThe task Id.
checkTypeThe check type, specifies returned result object filling - simple brief or full.

Definition at line 369 of file EventObjects.py.

369  def __init__(self, taskId, checkType=TYPE_SIMPLE):
370 
372  self.id = taskId
373 
375  self.type = checkType
376 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ toJSON()

def dtm.EventObjects.CheckTaskState.toJSON (   self)

Definition at line 377 of file EventObjects.py.

377  def toJSON(self):
378  return json.dumps(self, default=lambda o: o.__dict__, sort_keys=True, indent=4)
379 
380 
381 

Member Data Documentation

◆ id

dtm.EventObjects.CheckTaskState.id

The task Id.

Definition at line 372 of file EventObjects.py.

◆ type

dtm.EventObjects.CheckTaskState.type

The type of check.

Definition at line 375 of file EventObjects.py.

◆ TYPE_FULL

int dtm.EventObjects.CheckTaskState.TYPE_FULL = 2
static

Definition at line 362 of file EventObjects.py.

◆ TYPE_SIMPLE

int dtm.EventObjects.CheckTaskState.TYPE_SIMPLE = 1
static

Definition at line 361 of file EventObjects.py.


The documentation for this class was generated from the following file: