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

Variables

string APP_NAME = "dcc"
 
string HELP_COMMAND_TEMPLATE = "Available commands are: "
 
string DEFAULT_CONFIG_NAME1 = "./dtmc.ini"
 
string DEFAULT_CONFIG_NAME2 = "/ect/dtmc.ini"
 
int TCP_TIMEOUT = 10000
 
string TCP_TIMEOUT_CONFIG_NAME = "timeout"
 
string DTM_HOST = "clientHost"
 
string DTM_PORT = "clientPort"
 
string LOG_CONFIG_SECTION_NAME = "Application"
 
string LOG_CONFIG_OPTION_NAME = "log"
 
string COOKIE_MERGE_NAME = "MERGE_RESULTS"
 
list TASKS
 
list TASKS_OBJECTS
 
string ERROR_STR1 = "Not present [--help] or [--command] mandatory args"
 
string ERROR_STR2 = "Absent [--file] or [--fields] arg with [--commands] arg"
 
string ERROR_STR3 = "[--command] arg's value not present in value's list"
 
string ERROR_STR4 = "[--file] wrong filename"
 
string ERROR_STR5 = "Wrong JSON format"
 
string ERROR_STR6 = "DCC exception msg={0}"
 
string ERROR_STR7 = "Network communicate timeout={0} mls"
 
string ERROR_STR8 = "Wrong Response eventObject type for {0} must be {1}"
 
string ERROR_STR9 = "Can't open config file, required argument --config=<config_file_name>"
 
string ERROR_STR10 = "Can't find log-ini section in config file"
 
string ERROR_STR11 = "Error while log initialize"
 
string ERROR_STR12 = "Connection error"
 
string ERROR_STR13 = "JSON serialize error"
 
string ERROR_STR14 = "Object instance creation error"
 
int ERROR_NOERROR = 0
 
int ERROR_CONFIG_SECTION = 2
 
int ERROR_ARGS1 = 2
 
int ERROR_ARGS2 = 2
 
int ERROR_BAD_TASK = 2
 
int ERROR_NO_CONFIG = 2
 
int ERROR_BAD_FILE_NAME = 1
 
int ERROR_BAD_JSON = 1
 
int ERROR_DCC = 1
 
int ERROR_NETWORK = 1
 
int ERROR_WRONG_RESPONSE = 1
 
int ERROR_LOG_SECTION_ERROR = 1
 
int ERROR_LOG_INIT = 1
 
int ERROR_CONNECTION = 1
 
int ERROR_EXCEPTION = 3
 
int ERROR_JSON = 2
 
int ERROR_OBJECT_CREATE = 4
 
int ERROR_INITIALIZATION = 5
 
string FILE_PROTOCOL_SIGNATURE = "file://"
 
int OBJECT_MAX_INIT_ARGUMENTS = 10
 

Detailed Description

Created on Apr 10, 2014

@package: dc
@author: scorp
@link: http://hierarchical-cluster-engine.com/
@copyright: Copyright &copy; 2013-2014 IOIX Ukraine
@license: http://hierarchical-cluster-engine.com/license/
@since: 0.1

Variable Documentation

◆ APP_NAME

string dcc.Constants.APP_NAME = "dcc"

Definition at line 12 of file Constants.py.

◆ COOKIE_MERGE_NAME

string dcc.Constants.COOKIE_MERGE_NAME = "MERGE_RESULTS"

Definition at line 22 of file Constants.py.

◆ DEFAULT_CONFIG_NAME1

string dcc.Constants.DEFAULT_CONFIG_NAME1 = "./dtmc.ini"

Definition at line 14 of file Constants.py.

◆ DEFAULT_CONFIG_NAME2

string dcc.Constants.DEFAULT_CONFIG_NAME2 = "/ect/dtmc.ini"

Definition at line 15 of file Constants.py.

◆ DTM_HOST

string dcc.Constants.DTM_HOST = "clientHost"

Definition at line 18 of file Constants.py.

◆ DTM_PORT

string dcc.Constants.DTM_PORT = "clientPort"

Definition at line 19 of file Constants.py.

◆ ERROR_ARGS1

int dcc.Constants.ERROR_ARGS1 = 2

Definition at line 104 of file Constants.py.

◆ ERROR_ARGS2

int dcc.Constants.ERROR_ARGS2 = 2

Definition at line 105 of file Constants.py.

◆ ERROR_BAD_FILE_NAME

int dcc.Constants.ERROR_BAD_FILE_NAME = 1

Definition at line 108 of file Constants.py.

◆ ERROR_BAD_JSON

int dcc.Constants.ERROR_BAD_JSON = 1

Definition at line 109 of file Constants.py.

◆ ERROR_BAD_TASK

int dcc.Constants.ERROR_BAD_TASK = 2

Definition at line 106 of file Constants.py.

◆ ERROR_CONFIG_SECTION

int dcc.Constants.ERROR_CONFIG_SECTION = 2

Definition at line 103 of file Constants.py.

◆ ERROR_CONNECTION

int dcc.Constants.ERROR_CONNECTION = 1

Definition at line 115 of file Constants.py.

◆ ERROR_DCC

int dcc.Constants.ERROR_DCC = 1

Definition at line 110 of file Constants.py.

◆ ERROR_EXCEPTION

int dcc.Constants.ERROR_EXCEPTION = 3

Definition at line 116 of file Constants.py.

◆ ERROR_INITIALIZATION

int dcc.Constants.ERROR_INITIALIZATION = 5

Definition at line 119 of file Constants.py.

◆ ERROR_JSON

int dcc.Constants.ERROR_JSON = 2

Definition at line 117 of file Constants.py.

◆ ERROR_LOG_INIT

int dcc.Constants.ERROR_LOG_INIT = 1

Definition at line 114 of file Constants.py.

◆ ERROR_LOG_SECTION_ERROR

int dcc.Constants.ERROR_LOG_SECTION_ERROR = 1

Definition at line 113 of file Constants.py.

◆ ERROR_NETWORK

int dcc.Constants.ERROR_NETWORK = 1

Definition at line 111 of file Constants.py.

◆ ERROR_NO_CONFIG

int dcc.Constants.ERROR_NO_CONFIG = 2

Definition at line 107 of file Constants.py.

◆ ERROR_NOERROR

int dcc.Constants.ERROR_NOERROR = 0

Definition at line 102 of file Constants.py.

◆ ERROR_OBJECT_CREATE

int dcc.Constants.ERROR_OBJECT_CREATE = 4

Definition at line 118 of file Constants.py.

◆ ERROR_STR1

string dcc.Constants.ERROR_STR1 = "Not present [--help] or [--command] mandatory args"

Definition at line 87 of file Constants.py.

◆ ERROR_STR10

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

Definition at line 96 of file Constants.py.

◆ ERROR_STR11

string dcc.Constants.ERROR_STR11 = "Error while log initialize"

Definition at line 97 of file Constants.py.

◆ ERROR_STR12

string dcc.Constants.ERROR_STR12 = "Connection error"

Definition at line 98 of file Constants.py.

◆ ERROR_STR13

string dcc.Constants.ERROR_STR13 = "JSON serialize error"

Definition at line 99 of file Constants.py.

◆ ERROR_STR14

string dcc.Constants.ERROR_STR14 = "Object instance creation error"

Definition at line 100 of file Constants.py.

◆ ERROR_STR2

string dcc.Constants.ERROR_STR2 = "Absent [--file] or [--fields] arg with [--commands] arg"

Definition at line 88 of file Constants.py.

◆ ERROR_STR3

string dcc.Constants.ERROR_STR3 = "[--command] arg's value not present in value's list"

Definition at line 89 of file Constants.py.

◆ ERROR_STR4

string dcc.Constants.ERROR_STR4 = "[--file] wrong filename"

Definition at line 90 of file Constants.py.

◆ ERROR_STR5

string dcc.Constants.ERROR_STR5 = "Wrong JSON format"

Definition at line 91 of file Constants.py.

◆ ERROR_STR6

string dcc.Constants.ERROR_STR6 = "DCC exception msg={0}"

Definition at line 92 of file Constants.py.

◆ ERROR_STR7

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

Definition at line 93 of file Constants.py.

◆ ERROR_STR8

string dcc.Constants.ERROR_STR8 = "Wrong Response eventObject type for {0} must be {1}"

Definition at line 94 of file Constants.py.

◆ ERROR_STR9

string dcc.Constants.ERROR_STR9 = "Can't open config file, required argument --config=<config_file_name>"

Definition at line 95 of file Constants.py.

◆ ERROR_WRONG_RESPONSE

int dcc.Constants.ERROR_WRONG_RESPONSE = 1

Definition at line 112 of file Constants.py.

◆ FILE_PROTOCOL_SIGNATURE

string dcc.Constants.FILE_PROTOCOL_SIGNATURE = "file://"

Definition at line 121 of file Constants.py.

◆ HELP_COMMAND_TEMPLATE

string dcc.Constants.HELP_COMMAND_TEMPLATE = "Available commands are: "

Definition at line 13 of file Constants.py.

◆ LOG_CONFIG_OPTION_NAME

string dcc.Constants.LOG_CONFIG_OPTION_NAME = "log"

Definition at line 21 of file Constants.py.

◆ LOG_CONFIG_SECTION_NAME

string dcc.Constants.LOG_CONFIG_SECTION_NAME = "Application"

Definition at line 20 of file Constants.py.

◆ OBJECT_MAX_INIT_ARGUMENTS

int dcc.Constants.OBJECT_MAX_INIT_ARGUMENTS = 10

Definition at line 122 of file Constants.py.

◆ TASKS

list dcc.Constants.TASKS

Definition at line 23 of file Constants.py.

◆ TASKS_OBJECTS

list dcc.Constants.TASKS_OBJECTS

Definition at line 55 of file Constants.py.

◆ TCP_TIMEOUT

int dcc.Constants.TCP_TIMEOUT = 10000

Definition at line 16 of file Constants.py.

◆ TCP_TIMEOUT_CONFIG_NAME

string dcc.Constants.TCP_TIMEOUT_CONFIG_NAME = "timeout"

Definition at line 17 of file Constants.py.