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, getConfigOption=None, log=None) |
def | init (self) |
def | executeCommand (self, cmd, inputStream='') |
def | processBatch (self, batch) |
def | executeSocialTask (self, inputBatch) |
Public Member Functions inherited from dc_postprocessor.PostProcessingModuleClass.PostProcessingModuleClass | |
def | __init__ (self, getConfigOption=None, log=None) |
def | init (self) |
def | processBatch (self, batchObj) |
def | processBatchItem (self, batchItemObj) |
Public Attributes | |
cmd | |
dbWrapper | |
Public Attributes inherited from dc_postprocessor.PostProcessingModuleClass.PostProcessingModuleClass | |
getConfigOption | |
logger | |
Static Public Attributes | |
string | SOCIAL_RATE_PROPERTY_NAME = 'SOCIAL_RATE' |
string | USER_PROXY_PROPERTY_NAME = 'USER_PROXY' |
string | PARAM_USER_PROXY = 'user_proxy' |
string | OPTION_EXECUTION_LOCAL = 'executionLocal' |
string | OPTION_EXECUTION_REMOTE = 'executionRemote' |
string | OPTION_EXECUTION_TYPE = 'executionType' |
string | OPTION_DB_TASK_INI = 'db_task_ini' |
int | EXECUTION_TYPE_LOCAL = 0 |
int | EXECUTION_TYPE_REMOTE = 1 |
int | EXECUTION_TYPE_DEFAULT = EXECUTION_TYPE_LOCAL |
string | TMP_INPUT_FILE_NAME = 'in' |
string | TMP_OUTPUT_FILE_NAME = 'out' |
list | TMP_FILE_NAMES_LIST = [TMP_INPUT_FILE_NAME, TMP_OUTPUT_FILE_NAME] |
string | MACRO_INPUT_FILE = '%INPUT_FILE%' |
string | MACRO_OUTPUT_FILE = '%OUTPUT_FILE%' |
string | MACRO_USER_NAME = '%USER_NAME%' |
string | ERROR_MSG_INITIALIZATION_CALLBACK = "Error initialization of callback function for get config options." |
string | ERROR_MSG_INITIALIZATION_LOGGER = "Error initialization of self.logger." |
string | ERROR_MSG_EXECUTION_TYPE = "Wrong execution type ( %s ) was got from config file." |
string | ERROR_MSG_EXECUTION_CMD_EMPTY = "Execution command line is empty." |
string | ERROR_MSG_CREATION_DBTASK_WRAPPER = "Creation DBTaskWrapper failed. Error: %s" |
string | ERROR_MSG_LOAD_USER_PROXY = "Load parameter '" + PARAM_USER_PROXY + "' from site property failed. Error: %s" |
Private Member Functions | |
def | __getDBWrapper (self) |
def | __getCmd (self) |
def | __createTemporaryFiles (self) |
def | __removeTemporaryFiles (self, tempFiles) |
def | __makeInputFile (self, tempFiles, inputBatch) |
def | __readOutputFile (self, tempFiles) |
def | __makeCmdLine (self, tempFiles, templateCmdLine) |
def | __fillUserProxyData (self, batchItem) |
Definition at line 37 of file SocialModule.py.
def dc_postprocessor.SocialModule.SocialModule.__init__ | ( | self, | |
getConfigOption = None , |
|||
log = None |
|||
) |
Definition at line 74 of file SocialModule.py.
|
private |
|
private |
Definition at line 248 of file SocialModule.py.
|
private |
|
private |
Definition at line 100 of file SocialModule.py.
|
private |
|
private |
|
private |
|
private |
def dc_postprocessor.SocialModule.SocialModule.executeCommand | ( | self, | |
cmd, | |||
inputStream = '' |
|||
) |
Definition at line 148 of file SocialModule.py.
def dc_postprocessor.SocialModule.SocialModule.executeSocialTask | ( | self, | |
inputBatch | |||
) |
Definition at line 329 of file SocialModule.py.
def dc_postprocessor.SocialModule.SocialModule.init | ( | self | ) |
Definition at line 85 of file SocialModule.py.
def dc_postprocessor.SocialModule.SocialModule.processBatch | ( | self, | |
batch | |||
) |
Definition at line 289 of file SocialModule.py.
dc_postprocessor.SocialModule.SocialModule.cmd |
Definition at line 77 of file SocialModule.py.
dc_postprocessor.SocialModule.SocialModule.dbWrapper |
Definition at line 78 of file SocialModule.py.
|
static |
Definition at line 69 of file SocialModule.py.
|
static |
Definition at line 68 of file SocialModule.py.
|
static |
Definition at line 67 of file SocialModule.py.
|
static |
Definition at line 65 of file SocialModule.py.
|
static |
Definition at line 66 of file SocialModule.py.
|
static |
Definition at line 70 of file SocialModule.py.
|
static |
Definition at line 52 of file SocialModule.py.
|
static |
Definition at line 50 of file SocialModule.py.
|
static |
Definition at line 51 of file SocialModule.py.
|
static |
Definition at line 60 of file SocialModule.py.
|
static |
Definition at line 61 of file SocialModule.py.
|
static |
Definition at line 62 of file SocialModule.py.
|
static |
Definition at line 48 of file SocialModule.py.
|
static |
Definition at line 45 of file SocialModule.py.
|
static |
Definition at line 46 of file SocialModule.py.
|
static |
Definition at line 47 of file SocialModule.py.
|
static |
Definition at line 42 of file SocialModule.py.
|
static |
Definition at line 40 of file SocialModule.py.
|
static |
Definition at line 57 of file SocialModule.py.
|
static |
Definition at line 55 of file SocialModule.py.
|
static |
Definition at line 56 of file SocialModule.py.
|
static |
Definition at line 41 of file SocialModule.py.