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
|
DTMC Class contents main functional of DTMC application, class inherits from foundation.CementApp. More...
Classes | |
class | Meta |
Public Member Functions | |
def | __init__ (self, connectionBuilder=None) |
constructor initialise all class variable and recieve connectionBuilder as param(not mandatory) More... | |
def | fillError (self, errorStr, errorCode, isLogging=True) |
fillError method calls from error-code point from main processing (...from event handlers) errorStr - external errorMessage errorCode - external errorCode More... | |
def | connectionInit (self) |
connectionInit method initializes internal variables that containts network connections/communications More... | |
def | taskProcessingDeserialize (self, task, fileName, task_id) |
taskProcessingDeserialize method Reads task from file and deserializes it. More... | |
def | generateEmptyResponse (self, task) |
generateEmptyResponse method If here was some critical error, we generate empty response here , instead real response task - task arg More... | |
def | taskProcessingSerialize (self, task, eventObj) |
taskProcessingDeserialize method Method serializes incoming task to the JSON string task - task arg eventObj - response event object More... | |
def | transportCommunications (self, task, eventObj) |
taskProcessingDeserialize method Method serializes incoming task to the JSON string task - task arg eventObj - response event object More... | |
def | configReader (self) |
configReader method Method try to read config file by prereared paths, return count of readed configs More... | |
def | loadLogConfigFile (self) |
load logging load logging configuration (log file, log level, filters) More... | |
def | setup (self) |
setup method Method calls before run application More... | |
def | run (self) |
run method Method contains main application functionality More... | |
def | close (self) |
close method Method calls after application run More... | |
Public Attributes | |
config | |
connectionBuilder | |
localConnection | |
eventBuilder | |
dTMCObjectsSerializator | |
errorCode | |
errorStr | |
Static Public Attributes | |
label = CONSTANTS.APP_NAME | |
def dtmc.DTMC.DTMC.__init__ | ( | self, | |
connectionBuilder = None |
|||
) |
constructor initialise all class variable and recieve connectionBuilder as param(not mandatory)
Definition at line 47 of file DTMC.py.
def dtmc.DTMC.DTMC.close | ( | self | ) |
close method Method calls after application run
def dtmc.DTMC.DTMC.configReader | ( | self | ) |
def dtmc.DTMC.DTMC.connectionInit | ( | self | ) |
def dtmc.DTMC.DTMC.fillError | ( | self, | |
errorStr, | |||
errorCode, | |||
isLogging = True |
|||
) |
def dtmc.DTMC.DTMC.generateEmptyResponse | ( | self, | |
task | |||
) |
generateEmptyResponse method If here was some critical error, we generate empty response here , instead real response task - task arg
Definition at line 119 of file DTMC.py.
def dtmc.DTMC.DTMC.loadLogConfigFile | ( | self | ) |
load logging load logging configuration (log file, log level, filters)
Definition at line 255 of file DTMC.py.
def dtmc.DTMC.DTMC.run | ( | self | ) |
def dtmc.DTMC.DTMC.setup | ( | self | ) |
def dtmc.DTMC.DTMC.taskProcessingDeserialize | ( | self, | |
task, | |||
fileName, | |||
task_id | |||
) |
taskProcessingDeserialize method Reads task from file and deserializes it.
task - task arg fileName - json filename task_id - task id, seeetd by args
Definition at line 90 of file DTMC.py.
def dtmc.DTMC.DTMC.taskProcessingSerialize | ( | self, | |
task, | |||
eventObj | |||
) |
taskProcessingDeserialize method Method serializes incoming task to the JSON string task - task arg eventObj - response event object
Definition at line 155 of file DTMC.py.
def dtmc.DTMC.DTMC.transportCommunications | ( | self, | |
task, | |||
eventObj | |||
) |