HCE Project PHP language client API bindings OOP style  1.1.1
Hierarchical Cluster Engine PHP Client Interface API OOP style
 All Classes Namespaces Files Functions Variables Pages
Constants.inc.php
Go to the documentation of this file.
1 <?php
2 
14 namespace HCE\transport {
15 
19  defined ( __NAMESPACE__ . '\HANDLER_ADMIN' ) or define ( __NAMESPACE__ . '\HANDLER_ADMIN', 'Admin' );
20  defined ( __NAMESPACE__ . '\HANDLER_ROUTERSERVER_PROXY' ) or define ( __NAMESPACE__ . '\HANDLER_ROUTERSERVER_PROXY', 'RouterServerProxy' );
21  defined ( __NAMESPACE__ . '\HANDLER_DATASERVER_PROXY' ) or define ( __NAMESPACE__ . '\HANDLER_DATASERVER_PROXY', 'DataServerProxy' );
22  defined ( __NAMESPACE__ . '\HANDLER_DATA_CLIENT_PROXY' ) or define ( __NAMESPACE__ . '\HANDLER_DATA_CLIENT_PROXY', 'DataClientProxy' );
23  defined ( __NAMESPACE__ . '\HANDLER_DATAPROCESSOR_DATA' ) or define ( __NAMESPACE__ . '\HANDLER_DATAPROCESSOR_DATA', 'DataProcessorData' );
24  defined ( __NAMESPACE__ . '\HANDLER_DATACLIENT_DATA' ) or define ( __NAMESPACE__ . '\HANDLER_DATACLIENT_DATA', 'DataClientData' );
25  defined ( __NAMESPACE__ . '\HANDLER_DATA_REDUCER_PROXY' ) or define ( __NAMESPACE__ . '\HANDLER_DATA_REDUCER_PROXY', 'DataReducerProxy' );
26 
30  defined ( __NAMESPACE__ . '\PROTOCOL_ERROR_OK' ) or define ( __NAMESPACE__ . '\PROTOCOL_ERROR_OK', 0 );
31  defined ( __NAMESPACE__ . '\PROTOCOL_ERROR_CONNECTION_PARAMS' ) or define ( __NAMESPACE__ . '\PROTOCOL_ERROR_CONNECTION_PARAMS', - 1 );
32  defined ( __NAMESPACE__ . '\PROTOCOL_ERROR_CONTEXT_CREATE' ) or define ( __NAMESPACE__ . '\PROTOCOL_ERROR_CONTEXT_CREATE', - 2 );
33  defined ( __NAMESPACE__ . '\PROTOCOL_ERROR_SOCKET_CREATE' ) or define ( __NAMESPACE__ . '\PROTOCOL_ERROR_SOCKET_CREATE', - 3 );
34  defined ( __NAMESPACE__ . '\PROTOCOL_ERROR_TIMEOUT' ) or define ( __NAMESPACE__ . '\PROTOCOL_ERROR_TIMEOUT', - 5 );
35  defined ( __NAMESPACE__ . '\PROTOCOL_ERROR_WRONG_RESPONSE_MSG_ID' ) or define ( __NAMESPACE__ . '\PROTOCOL_ERROR_WRONG_RESPONSE_MSG_ID', - 6 );
36 
40  defined ( __NAMESPACE__ . '\PROTOCOL_ADMIN_DEFAULT' ) or define ( __NAMESPACE__ . '\PROTOCOL_ADMIN_DEFAULT', 'tcp' );
41 
45  defined ( __NAMESPACE__ . '\PROTOCOL_HOST_DEFAULT' ) or define ( __NAMESPACE__ . '\PROTOCOL_HOST_DEFAULT', 'localhost' );
46 
50  defined ( __NAMESPACE__ . '\PROTOCOL_PORT_ADMIN_DEFAULT' ) or define ( __NAMESPACE__ . '\PROTOCOL_PORT_ADMIN_DEFAULT', 5546 );
51 
55  defined ( __NAMESPACE__ . '\PROTOCOL_PORT_ROUTER_DEFAULT' ) or define ( __NAMESPACE__ . '\PROTOCOL_PORT_ROUTER_DEFAULT', 5556 );
56 
60  defined ( __NAMESPACE__ . '\PROTOCOL_CLIENT_IDENTITY_PREFIX' ) or define ( __NAMESPACE__ . '\PROTOCOL_CLIENT_IDENTITY_PREFIX', 'HCE-CLU-' );
61 
65  defined ( __NAMESPACE__ . '\PROTOCOL_MSG_ID_PREFIX' ) or define ( __NAMESPACE__ . '\PROTOCOL_MSG_ID_PREFIX', 'ID-' );
66 
70  defined ( __NAMESPACE__ . '\PROTOCOL_MSG_RESPONSE_TIMEOUT_DEFAULT' ) or define ( __NAMESPACE__ . '\PROTOCOL_MSG_RESPONSE_TIMEOUT_DEFAULT', 1500 );
71 
75  defined ( __NAMESPACE__ . '\PROTOCOL_CONNECTION_TYPE_ADMIN' ) or define ( __NAMESPACE__ . '\PROTOCOL_CONNECTION_TYPE_ADMIN', 0 );
76  defined ( __NAMESPACE__ . '\PROTOCOL_CONNECTION_TYPE_ROUTER' ) or define ( __NAMESPACE__ . '\PROTOCOL_CONNECTION_TYPE_ROUTER', 1 );
77 }
78 
79 ?>