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
|
Public Member Functions | |
def | __init__ (self, configParser, connectionBuilderLight=None) |
def | on_poll_timeout (self) |
def | onEventsHandler (self, event) |
def | forkBatch (self, loggingObj, event) |
def | sendClientResponse (self, clientRequestEvent, clientResponseObj) |
def | prepareDRCERequest (self, eventObj) |
def | processDRCERequest (self, taskExecuteRequest) |
def | sendToDRCERouter (self, request) |
Public Member Functions inherited from app.BaseServerManager.BaseServerManager | |
def | __init__ (self, poller_manager=None, admin_connection=None, conectionLightBuilder=None, exceptionForward=False, dumpStatVars=True) |
constructor More... | |
def | addConnection (self, name, connection) |
def | setEventHandler (self, eventType, handler) |
set event handler rewrite the current handler for eventType More... | |
def | send (self, connect_name, event) |
send event More... | |
def | reply (self, event, reply_event) |
wrapper for sending event in reply for event More... | |
def | poll (self) |
poll function polling connections receive as multipart msg, the second argument is pickled pyobj More... | |
def | process (self, event) |
process event call the event handler method that was set by user or on_unhandled_event method if not set More... | |
def | run (self) |
def | is_connection_registered (self, name) |
check is a connection was registered in a instance of BaseServerManager i object More... | |
def | on_poll_timeout (self) |
function will call every time when ConnectionTimeout exception arrive More... | |
def | on_unhandled_event (self, event) |
function will call every time when arrive doesn't set handler for event type of event.evenType More... | |
def | build_poller_list (self) |
def | clear_poller (self) |
def | onAdminState (self, event) |
onAdminState event handler process admin SHUTDOWN command More... | |
def | onAdminFetchStatData (self, event) |
onAdminState event handler process admin command More... | |
def | onAdminSuspend (self, event) |
onAdminState event handler process admin command More... | |
def | getStatDataFields (self, fields) |
getStatDataFields returns stat data from storage More... | |
def | getSystemStat (self) |
getSystemStat returns stat data for system indicators: RAMV, RAMR and CPU More... | |
def | getConfigVarsFields (self, fields) |
getConfigVarsFields returns config vars from storage More... | |
def | onAdminGetConfigVars (self, event) |
onAdminGetConfigVars event handler process getConfigVars admin command, fill and return config vars array from internal storage More... | |
def | onAdminSetConfigVars (self, event) |
onAdminSetConfigVars event handler process setConfigVars admin command More... | |
def | setConfigVars (self, setConfigVars) |
processSetConfigVars sets config vars in storage More... | |
def | sendAdminReadyEvent (self) |
send ready event to notify adminInterfaceService More... | |
def | createLogMsg (self, event) |
from string message from event object More... | |
def | initStatFields (self, connect_name) |
add record in statFields More... | |
def | updateStatField (self, field_name, value, operation=STAT_FIELDS_OPERATION_ADD) |
update values of stat field - default sum More... | |
def | processSpecialConfigVars (self, name, value) |
send ready event to notify adminInterfaceService More... | |
def | getLogLevel (self) |
Get log level from first of existing loggers. More... | |
def | setLogLevel (self, level) |
Set log level for all loggers. More... | |
def | saveStatVarsDump (self) |
Save stat vars in json file. More... | |
def | loadStatVarsDump (self) |
Load stat vars in json file. More... | |
def | getStatVarsDumpFileName (self) |
Get stat vars file name. More... | |
def | createDBIDict (self, configParser) |
Public Attributes | |
serverName | |
drceHost | |
drcePort | |
drceIdGenerator | |
drceCommandConvertor | |
totalTime | |
Public Attributes inherited from app.BaseServerManager.BaseServerManager | |
dumpStatVars | |
poller_manager | |
eventBuilder | |
exit_flag | |
pollTimeout | |
connections | |
event_handlers | |
statFields | |
stat fields container More... | |
configVars | |
exceptionForward | |
Definition at line 51 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.__init__ | ( | self, | |
configParser, | |||
connectionBuilderLight = None |
|||
) |
Definition at line 83 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.forkBatch | ( | self, | |
loggingObj, | |||
event | |||
) |
Definition at line 244 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.on_poll_timeout | ( | self | ) |
Definition at line 154 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.onEventsHandler | ( | self, | |
event | |||
) |
Definition at line 178 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.prepareDRCERequest | ( | self, | |
eventObj | |||
) |
Definition at line 320 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.processDRCERequest | ( | self, | |
taskExecuteRequest | |||
) |
Definition at line 366 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.sendClientResponse | ( | self, | |
clientRequestEvent, | |||
clientResponseObj | |||
) |
Definition at line 306 of file BatchTasksManagerRealTime.py.
def dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.sendToDRCERouter | ( | self, | |
request | |||
) |
Definition at line 445 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 73 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 58 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 68 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 69 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 67 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 64 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 65 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 72 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 57 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 63 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 66 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 70 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 71 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 61 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 53 of file BatchTasksManagerRealTime.py.
dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.drceCommandConvertor |
Definition at line 105 of file BatchTasksManagerRealTime.py.
dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.drceHost |
Definition at line 100 of file BatchTasksManagerRealTime.py.
dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.drceIdGenerator |
Definition at line 104 of file BatchTasksManagerRealTime.py.
dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.drcePort |
Definition at line 101 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 75 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 54 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 56 of file BatchTasksManagerRealTime.py.
|
static |
Definition at line 55 of file BatchTasksManagerRealTime.py.
dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.serverName |
Definition at line 92 of file BatchTasksManagerRealTime.py.
dc.BatchTasksManagerRealTime.BatchTasksManagerRealTime.totalTime |
Definition at line 145 of file BatchTasksManagerRealTime.py.