util/Constants.h

Go to the documentation of this file.
00001 /*-----------------------------------------------------------------------------
00002 Name:      Constants.h
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 Comment:   Holding some constants
00006 -----------------------------------------------------------------------------*/
00007 
00008 #ifndef _UTIL_CONSTANTS_H
00009 #define _UTIL_CONSTANTS_H
00010 
00011 #include <util/xmlBlasterDef.h>
00012 #include <string>
00013 
00014 
00015 
00016 namespace org { namespace xmlBlaster {
00017   namespace util { namespace Constants {
00018 
00027    //class Dll_Export Constants {
00028 
00029    //public:
00030 
00031    extern Dll_Export  const char * DEFAULT_SECURITYPLUGIN_TYPE;
00032    extern Dll_Export  const char * DEFAULT_SECURITYPLUGIN_VERSION;
00033 
00034    enum {
00035       MINUTE_IN_MILLIS = 1000L*60,
00036       HOUR_IN_MILLIS = MINUTE_IN_MILLIS*60,
00037       DAY_IN_MILLIS = HOUR_IN_MILLIS * 24,
00038       WEEK_IN_MILLIS = DAY_IN_MILLIS * 7
00039    };
00040 
00041 
00052    enum {
00053       XMLBLASTER_PORT = 3412
00054    };
00055 
00064    enum {
00065       XMLBLASTER_SNMP = 11662
00066    };
00067 
00072    extern Dll_Export long XMLBLASTER_OID_ROOT[];
00073 
00074 //   enum MessagePriority {
00078 //      MIN_PRIORITY = 0,
00079 
00083 //      LOW_PRIORITY = 3,
00084 
00088 //      NORM_PRIORITY = 5,
00089 
00093 //      HIGH_PRIORITY = 7,
00094 
00098 //      MAX_PRIORITY = 9
00099 //   };
00100 
00101 
00109    /*const int getPriority(std::string prio, int defaultPriority);*/
00110 
00111    // Status id, on error usually an exception is thrown so we don't need "ERROR":
00112 
00114    extern Dll_Export const char * STATE_OK;
00115    extern Dll_Export const char * RET_OK;
00116 
00118    extern Dll_Export const char * STATE_TIMEOUT;
00120    extern Dll_Export const char * STATE_ERASED;
00122    extern Dll_Export const char * STATE_FORWARD_ERROR;
00123 
00129    extern Dll_Export const char * INFO_QUEUED;
00130 
00131    // See org.xmlBlaster.engine.queuemsg.ServerEntryFactory.java ENTRY_TYPE_MSG_RAW
00132    // for persistency serialization
00133    extern Dll_Export const std::string ENTRY_TYPE_MSG_RAW; // "MSG_RAW"; msgUnit is dumped as specified in the protocol.socket requirement (see C persistent queue)
00134 
00135 
00137    extern Dll_Export const char * RELATING_CALLBACK;
00139    extern Dll_Export const char * RELATING_SUBJECT;
00141    extern Dll_Export const char * RELATING_UNRELATED;
00143    extern Dll_Export const std::string RELATING_CLIENT;
00145    extern Dll_Export const char * RELATING_HISTORY;
00147    extern Dll_Export const char * RELATING_MSGUNITSTORE;
00149    extern Dll_Export const char * RELATING_TOPICSTORE;
00150 
00152    extern Dll_Export const char * ONOVERFLOW_BLOCK;
00154    extern Dll_Export const char * ONOVERFLOW_DEADLETTER;
00156    extern Dll_Export const char * ONOVERFLOW_DISCARD;
00158    extern Dll_Export const char * ONOVERFLOW_DISCARDOLDEST;
00160    extern Dll_Export const char * ONOVERFLOW_EXCEPTION;
00162    extern Dll_Export const char * ONOVERFLOW_DEADMESSAGE;
00163 
00164 
00166    extern Dll_Export const char * ONEXHAUST_KILL_SESSION;
00167 
00169    extern Dll_Export const char * JDBC_OID;
00170 
00172    extern Dll_Export const char * OID_DEAD_LETTER;
00173 
00175    extern Dll_Export const char * XPATH;
00176    extern Dll_Export const char * EXACT;
00177 //   extern Dll_Export const char * DOMAIN; // doesn't compile with g++ 3.1.1
00178    extern Dll_Export const char * D_O_M_A_I_N;
00179    extern Dll_Export const char * REGEX;
00180    
00181    extern Dll_Export const char * XPATH_URL_PREFIX;
00182    extern Dll_Export const char * EXACT_URL_PREFIX;
00183    extern Dll_Export const char * DOMAIN_URL_PREFIX;
00184 
00185    extern Dll_Export const char * SOCKET;
00186    extern Dll_Export const char * IOR;
00187    extern Dll_Export const char * EMAIL;
00188    extern Dll_Export const char * XML_RPC;
00189 
00190    extern Dll_Export const char * RAM;
00191    extern Dll_Export const char * CACHE;
00192    extern Dll_Export const char * ODBC;
00193    extern Dll_Export const char * SQLITE;
00194 
00195    extern Dll_Export const char * OFFSET;
00196    extern Dll_Export const char * INDENT;
00197 
00198    extern Dll_Export const char * ENCODING_BASE64;
00199    extern Dll_Export const char * ENCODING_NONE;
00200 
00201    extern Dll_Export const char * TYPE_STRING; //< is default, "String"
00202    extern Dll_Export const char * TYPE_BLOB;
00203    extern Dll_Export const char * TYPE_BOOLEAN;
00204    extern Dll_Export const char * TYPE_BYTE;
00205    extern Dll_Export const char * TYPE_DOUBLE;
00206    extern Dll_Export const char * TYPE_FLOAT;
00207    extern Dll_Export const char * TYPE_INT;
00208    extern Dll_Export const char * TYPE_SHORT;
00209    extern Dll_Export const char * TYPE_LONG;
00210 
00211 
00212 
00213    extern Dll_Export const org::xmlBlaster::util::Timestamp THOUSAND;
00214    extern Dll_Export const org::xmlBlaster::util::Timestamp MILLION;
00215    extern Dll_Export const org::xmlBlaster::util::Timestamp BILLION;
00216 
00218    extern Dll_Export const char* SESSIONID_PREFIX;
00219    extern Dll_Export const char* SUBSCRIPTIONID_PREFIX;
00220    extern Dll_Export const char* const SUBSCRIPTIONID_PtP;
00221 
00225    extern Dll_Export const char* SUBSCRIPTIONID_CLIENT_PREFIX;
00226    extern Dll_Export const char* INTERNAL_OID_PREFIX_FOR_PLUGINS;
00227    extern Dll_Export const char* INTERNAL_OID_ADMIN_CMD;
00228    extern Dll_Export const char* INTERNAL_OID_PREFIX_FOR_CORE;
00229    extern Dll_Export const char* INTERNAL_OID_PREFIX;
00230    extern Dll_Export const char* INTERNAL_OID_CLUSTER_PREFIX;
00231 
00235    extern Dll_Export const char* XB_GLOBAL_KEY;
00236    extern Dll_Export const char* XB_XMLPARSERFACTORY_KEY;
00237 
00238    extern Dll_Export const char* JMS_PREFIX;
00239    extern Dll_Export const char* JMSX_GROUP_ID;
00240    extern Dll_Export const char* JMSX_GROUP_SEQ;
00241    extern Dll_Export const char* JMSX_GROUP_EOF;
00242    extern Dll_Export const char* JMSX_GROUP_EX;
00243 
00244    extern Dll_Export const char* FILENAME_ATTR;
00245    extern Dll_Export const char* TIMESTAMP_ATTR;
00246    extern Dll_Export const char* FILE_DATE;
00247    
00248 //};
00249 
00250 
00251 }}}} // namespace 
00252 
00253 #endif
00254 
00255