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
dtma.Constants Namespace Reference

Variables

string APP_NAME = "dtma"
 
string SERVER_CONFIG_SECTION_NAME = "Server"
 
string SERVER_CONFIG_OPTION_NAME = "instantiateSequence"
 
string SERVER_CONFIG_OPTION_NAME2 = "shutdownSequence"
 
string DEFAULT_CONFIG_NAME1 = "./dtma.ini"
 
string DEFAULT_CONFIG_NAME2 = "/ect/dtma.ini"
 
int TCP_TIMEOUT = 10000
 
string TCP_TIMEOUT_CONFIG_NAME = "timeout"
 
string DTM_HOST = "clientHost"
 
string DTM_PORT = "clientPort"
 
list TASKS = ["STAT", "SET", "GET", "STOP", "SUSPEND", "SYSTEM", "SQL_CUSTOM"]
 
string FIELDS_SEPARATOR = ","
 
string NAME_VALUE_SEPARATOR = ":"
 
string LOG_CONFIG_SECTION_NAME = "Application"
 
string LOG_CONFIG_OPTION_NAME = "log"
 
string ERROR_STR1 = "Not present [--help] or [--cmd] mandatory args"
 
string ERROR_STR2 = "Not present [--fields] or [--classes] mandatory args"
 
string ERROR_STR3 = "Not found config [{0}.{1}] section"
 
string ERROR_STR4 = "Bad or empty --fields arg"
 
string ERROR_STR5 = "Bad or empty --classes arg"
 
string ERROR_STR7 = "Network communicate timeout={0} mls"
 
string ERROR_STR8 = "Can't find log-ini section in config file"
 
string ERROR_STR9 = "Not open Config file"
 
string ERROR_STR10 = "Error while log initialize"
 
int ERROR_NOERROR = 0
 
int ERROR_NO_CONFIG = 2
 
int ERROR_ARGS1 = 2
 
int ERROR_ARGS2 = 2
 
int ERROR_CONFIG_SECTION = 2
 
int ERROR_FIELDS_ARG = 2
 
int ERROR_CLASSES_ARG = 2
 
int ERROR_NETWORK = 1
 
int ERROR_LOG_SECTION_ERROR = 1
 
int ERROR_LOG_INIT = 1
 

Detailed Description

Created on Mar 25, 2014

@package: dtm
@author: scorp
@link: http://hierarchical-cluster-engine.com/
@copyright: Copyright © 2013-2014 IOIX Ukraine
@license: http://hierarchical-cluster-engine.com/license/
@since: 0.1

Variable Documentation

◆ APP_NAME

string dtma.Constants.APP_NAME = "dtma"

Definition at line 12 of file Constants.py.

◆ DEFAULT_CONFIG_NAME1

string dtma.Constants.DEFAULT_CONFIG_NAME1 = "./dtma.ini"

Definition at line 16 of file Constants.py.

◆ DEFAULT_CONFIG_NAME2

string dtma.Constants.DEFAULT_CONFIG_NAME2 = "/ect/dtma.ini"

Definition at line 17 of file Constants.py.

◆ DTM_HOST

string dtma.Constants.DTM_HOST = "clientHost"

Definition at line 20 of file Constants.py.

◆ DTM_PORT

string dtma.Constants.DTM_PORT = "clientPort"

Definition at line 21 of file Constants.py.

◆ ERROR_ARGS1

int dtma.Constants.ERROR_ARGS1 = 2

Definition at line 40 of file Constants.py.

◆ ERROR_ARGS2

int dtma.Constants.ERROR_ARGS2 = 2

Definition at line 41 of file Constants.py.

◆ ERROR_CLASSES_ARG

int dtma.Constants.ERROR_CLASSES_ARG = 2

Definition at line 44 of file Constants.py.

◆ ERROR_CONFIG_SECTION

int dtma.Constants.ERROR_CONFIG_SECTION = 2

Definition at line 42 of file Constants.py.

◆ ERROR_FIELDS_ARG

int dtma.Constants.ERROR_FIELDS_ARG = 2

Definition at line 43 of file Constants.py.

◆ ERROR_LOG_INIT

int dtma.Constants.ERROR_LOG_INIT = 1

Definition at line 47 of file Constants.py.

◆ ERROR_LOG_SECTION_ERROR

int dtma.Constants.ERROR_LOG_SECTION_ERROR = 1

Definition at line 46 of file Constants.py.

◆ ERROR_NETWORK

int dtma.Constants.ERROR_NETWORK = 1

Definition at line 45 of file Constants.py.

◆ ERROR_NO_CONFIG

int dtma.Constants.ERROR_NO_CONFIG = 2

Definition at line 39 of file Constants.py.

◆ ERROR_NOERROR

int dtma.Constants.ERROR_NOERROR = 0

Definition at line 38 of file Constants.py.

◆ ERROR_STR1

string dtma.Constants.ERROR_STR1 = "Not present [--help] or [--cmd] mandatory args"

Definition at line 28 of file Constants.py.

◆ ERROR_STR10

string dtma.Constants.ERROR_STR10 = "Error while log initialize"

Definition at line 36 of file Constants.py.

◆ ERROR_STR2

string dtma.Constants.ERROR_STR2 = "Not present [--fields] or [--classes] mandatory args"

Definition at line 29 of file Constants.py.

◆ ERROR_STR3

string dtma.Constants.ERROR_STR3 = "Not found config [{0}.{1}] section"

Definition at line 30 of file Constants.py.

◆ ERROR_STR4

string dtma.Constants.ERROR_STR4 = "Bad or empty --fields arg"

Definition at line 31 of file Constants.py.

◆ ERROR_STR5

string dtma.Constants.ERROR_STR5 = "Bad or empty --classes arg"

Definition at line 32 of file Constants.py.

◆ ERROR_STR7

string dtma.Constants.ERROR_STR7 = "Network communicate timeout={0} mls"

Definition at line 33 of file Constants.py.

◆ ERROR_STR8

string dtma.Constants.ERROR_STR8 = "Can't find log-ini section in config file"

Definition at line 34 of file Constants.py.

◆ ERROR_STR9

string dtma.Constants.ERROR_STR9 = "Not open Config file"

Definition at line 35 of file Constants.py.

◆ FIELDS_SEPARATOR

string dtma.Constants.FIELDS_SEPARATOR = ","

Definition at line 23 of file Constants.py.

◆ LOG_CONFIG_OPTION_NAME

string dtma.Constants.LOG_CONFIG_OPTION_NAME = "log"

Definition at line 26 of file Constants.py.

◆ LOG_CONFIG_SECTION_NAME

string dtma.Constants.LOG_CONFIG_SECTION_NAME = "Application"

Definition at line 25 of file Constants.py.

◆ NAME_VALUE_SEPARATOR

string dtma.Constants.NAME_VALUE_SEPARATOR = ":"

Definition at line 24 of file Constants.py.

◆ SERVER_CONFIG_OPTION_NAME

string dtma.Constants.SERVER_CONFIG_OPTION_NAME = "instantiateSequence"

Definition at line 14 of file Constants.py.

◆ SERVER_CONFIG_OPTION_NAME2

string dtma.Constants.SERVER_CONFIG_OPTION_NAME2 = "shutdownSequence"

Definition at line 15 of file Constants.py.

◆ SERVER_CONFIG_SECTION_NAME

string dtma.Constants.SERVER_CONFIG_SECTION_NAME = "Server"

Definition at line 13 of file Constants.py.

◆ TASKS

list dtma.Constants.TASKS = ["STAT", "SET", "GET", "STOP", "SUSPEND", "SYSTEM", "SQL_CUSTOM"]

Definition at line 22 of file Constants.py.

◆ TCP_TIMEOUT

int dtma.Constants.TCP_TIMEOUT = 10000

Definition at line 18 of file Constants.py.

◆ TCP_TIMEOUT_CONFIG_NAME

string dtma.Constants.TCP_TIMEOUT_CONFIG_NAME = "timeout"

Definition at line 19 of file Constants.py.