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
Constants.py
Go to the documentation of this file.
1 '''
2 Created on Mar 25, 2014
3 
4 @package: dtm
5 @author: scorp
6 @link: http://hierarchical-cluster-engine.com/
7 @copyright: Copyright © 2013-2014 IOIX Ukraine
8 @license: http://hierarchical-cluster-engine.com/license/
9 @since: 0.1
10 '''
11 
12 APP_NAME = "dtma"
13 SERVER_CONFIG_SECTION_NAME = "Server"
14 SERVER_CONFIG_OPTION_NAME = "instantiateSequence"
15 SERVER_CONFIG_OPTION_NAME2 = "shutdownSequence"
16 DEFAULT_CONFIG_NAME1 = "./dtma.ini"
17 DEFAULT_CONFIG_NAME2 = "/ect/dtma.ini"
18 TCP_TIMEOUT = 10000
19 TCP_TIMEOUT_CONFIG_NAME = "timeout"
20 DTM_HOST = "clientHost"
21 DTM_PORT = "clientPort"
22 TASKS = ["STAT", "SET", "GET", "STOP", "SUSPEND", "SYSTEM", "SQL_CUSTOM"]
23 FIELDS_SEPARATOR = ","
24 NAME_VALUE_SEPARATOR = ":"
25 LOG_CONFIG_SECTION_NAME = "Application"
26 LOG_CONFIG_OPTION_NAME = "log"
27 
28 ERROR_STR1 = "Not present [--help] or [--cmd] mandatory args"
29 ERROR_STR2 = "Not present [--fields] or [--classes] mandatory args"
30 ERROR_STR3 = "Not found config [{0}.{1}] section"
31 ERROR_STR4 = "Bad or empty --fields arg"
32 ERROR_STR5 = "Bad or empty --classes arg"
33 ERROR_STR7 = "Network communicate timeout={0} mls"
34 ERROR_STR8 = "Can't find log-ini section in config file"
35 ERROR_STR9 = "Not open Config file"
36 ERROR_STR10 = "Error while log initialize"
37 
38 ERROR_NOERROR = 0
39 ERROR_NO_CONFIG = 2
40 ERROR_ARGS1 = 2
41 ERROR_ARGS2 = 2
42 ERROR_CONFIG_SECTION = 2
43 ERROR_FIELDS_ARG = 2
44 ERROR_CLASSES_ARG = 2
45 ERROR_NETWORK = 1
46 ERROR_LOG_SECTION_ERROR = 1
47 ERROR_LOG_INIT = 1