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.GeneralResponse Class Reference

GeneralResponse event object, represents general state response for multipurpose usage. More...

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

Public Member Functions

def __init__ (self, errorCode=ERROR_OK, errorMessage="")
 constructor initialize response fields More...
 
def toJSON (self)
 

Public Attributes

 errorCode
 The errorCode of request operation, zero means success. More...
 
 errorMessage
 The error message of request operation filled depends on. More...
 
 statuses
 The list of statuses in case of request used for group of objects or actions. More...
 

Static Public Attributes

int ERROR_OK = 0
 

Detailed Description

GeneralResponse event object, represents general state response for multipurpose usage.

The GeneralResponse object used to return unspecific common purpose response to get request status information or query the request acknowledgement.

Definition at line 561 of file EventObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def dtm.EventObjects.GeneralResponse.__init__ (   self,
  errorCode = ERROR_OK,
  errorMessage = "" 
)

constructor initialize response fields

Parameters
idsListThe task Id list.

Definition at line 570 of file EventObjects.py.

570  def __init__(self, errorCode=ERROR_OK, errorMessage=""):
571 
573  self.errorCode = errorCode
574 
576  self.errorMessage = errorMessage
577 
579  self.statuses = []
580 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ toJSON()

def dtm.EventObjects.GeneralResponse.toJSON (   self)

Definition at line 581 of file EventObjects.py.

581  def toJSON(self):
582  return json.dumps(self, default=lambda o: o.__dict__, sort_keys=True, indent=4)
583 
584 
585 

Member Data Documentation

◆ ERROR_OK

int dtm.EventObjects.GeneralResponse.ERROR_OK = 0
static

Definition at line 564 of file EventObjects.py.

◆ errorCode

dtm.EventObjects.GeneralResponse.errorCode

The errorCode of request operation, zero means success.

Definition at line 573 of file EventObjects.py.

◆ errorMessage

dtm.EventObjects.GeneralResponse.errorMessage

The error message of request operation filled depends on.

Definition at line 576 of file EventObjects.py.

◆ statuses

dtm.EventObjects.GeneralResponse.statuses

The list of statuses in case of request used for group of objects or actions.

Definition at line 579 of file EventObjects.py.


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