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

AdminState event object, for admin manage change application state commands, like shutdown. More...

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

Public Member Functions

def __init__ (self, className, command)
 constructor initialize task's fields More...
 
def toJSON (self)
 

Public Attributes

 className
 
 command
 the command code for state operation More...
 

Static Public Attributes

int STATE_NOP = 0
 
int STATE_READY = 1
 
int STATE_SHUTDOWN = 2
 
int STATE_SUSPEND = 3
 
int STATE_TRACE = 4
 
int STATE_TRANSACTION_ROLLBACK = 6
 
int STATE_ERROR = 7
 

Detailed Description

AdminState event object, for admin manage change application state commands, like shutdown.

Definition at line 1011 of file EventObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def dtm.EventObjects.AdminState.__init__ (   self,
  className,
  command 
)

constructor initialize task's fields

Parameters
commandthe command code for state operation
classNamename of target class

Definition at line 1026 of file EventObjects.py.

1026  def __init__(self, className, command):
1027 
1029  self.className = className
1030 
1032  self.command = command
1033 
1034 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ toJSON()

def dtm.EventObjects.AdminState.toJSON (   self)

Definition at line 1035 of file EventObjects.py.

1035  def toJSON(self):
1036  return json.dumps(self, default=lambda o: o.__dict__, sort_keys=True, indent=4)
1037 
1038 
1039 

Member Data Documentation

◆ className

dtm.EventObjects.AdminState.className

Definition at line 1029 of file EventObjects.py.

◆ command

dtm.EventObjects.AdminState.command

the command code for state operation

Definition at line 1032 of file EventObjects.py.

◆ STATE_ERROR

int dtm.EventObjects.AdminState.STATE_ERROR = 7
static

Definition at line 1019 of file EventObjects.py.

◆ STATE_NOP

int dtm.EventObjects.AdminState.STATE_NOP = 0
static

Definition at line 1013 of file EventObjects.py.

◆ STATE_READY

int dtm.EventObjects.AdminState.STATE_READY = 1
static

Definition at line 1014 of file EventObjects.py.

◆ STATE_SHUTDOWN

int dtm.EventObjects.AdminState.STATE_SHUTDOWN = 2
static

Definition at line 1015 of file EventObjects.py.

◆ STATE_SUSPEND

int dtm.EventObjects.AdminState.STATE_SUSPEND = 3
static

Definition at line 1016 of file EventObjects.py.

◆ STATE_TRACE

int dtm.EventObjects.AdminState.STATE_TRACE = 4
static

Definition at line 1017 of file EventObjects.py.

◆ STATE_TRANSACTION_ROLLBACK

int dtm.EventObjects.AdminState.STATE_TRANSACTION_ROLLBACK = 6
static

Definition at line 1018 of file EventObjects.py.


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