00001
00014 #ifndef __TX_UCM_CONSTANTS__
00015 #define __TX_UCM_CONSTANTS__
00016
00017 #include <string>
00018
00019 namespace TxUCMConstants {
00023 static const char* propsFile = "ucmlogging.properties";
00024 static const char* logFileDir = "directory.name";
00025 static const char* logFileName = "logfile.name";
00026
00033 static const char* envBrokerTaskID = "REQUESTID";
00034 static const char* envBrokerJobID = "JOBINDEX";
00035 static const char* defaultContext = "UCM Default Context";
00036 static const char* defaultRequester = "UCM Default Requester";
00037
00041 static const char* logEvent = "com.txcorp.ucm.log.event";
00042 static const char* submitEvent = "com.txcorp.ucm.submit.event";
00043
00047 static const char* newTask = "com.txcorp.ucm.newtask";
00048 static const char* updateTask = "com.txcorp.ucm.updatetask";
00049 static const char* addJob = "com.txcorp.ucm.addjob";
00050 static const char* updateJob = "com.txcorp.ucm.updatejob";
00051
00052 static const char* siteLocation = "com.txcorp.ucm.job.siteLocation";
00053 static const char* stateID = "com.txcorp.ucm.job.stateID";
00054 static const char* gridJobID = "com.txcorp.ucm.job.gridJobID";
00055 static const char* defaultKey = "com.txcorp.ucm.message";
00056 static const char* appStart = "com.txcorp.ucm.app.start";
00057 static const char* appEnd = "com.txcorp.ucm.app.end";
00058 }
00059 #ifndef UNUSED_UCM__MESSAGES
00060 #define UNUSED_UCM__MESSAGES \
00061 namespace { \
00062 bool unused = \
00063 TxUCMConstants::propsFile && \
00064 TxUCMConstants::logFileDir && \
00065 TxUCMConstants::logFileName && \
00066 TxUCMConstants::envBrokerTaskID && \
00067 TxUCMConstants::envBrokerJobID && \
00068 TxUCMConstants::defaultRequester && \
00069 TxUCMConstants::logEvent && \
00070 TxUCMConstants::submitEvent && \
00071 TxUCMConstants::newTask && \
00072 TxUCMConstants::updateTask && \
00073 TxUCMConstants::addJob && \
00074 TxUCMConstants::updateJob && \
00075 TxUCMConstants::siteLocation && \
00076 TxUCMConstants::stateID && \
00077 TxUCMConstants::gridJobID && \
00078 TxUCMConstants::defaultKey \
00079 ; \
00080 }
00081 UNUSED_UCM__MESSAGES
00082 #endif
00083 #endif