00001 #ifndef ASI_CONFIGURATION_CONSTANTS_H 00002 #define ASI_CONFIGURATION_CONSTANTS_H 00003 00004 // TODO later: use the CDB or the asi-configuration.xml file for this information! 00005 namespace asiConfigurationConstants 00006 { 00007 00008 // The XML file used by the java code for this information looks something like this: 00009 /* 00010 <ASI-configuration> 00011 <ASI-version>0.9</ASI-version> 00012 <alarms-topic>CMW.ALARM_SYSTEM.ALARMS.SOURCES</alarms-topic> 00013 <backup-delivery-mode>0</backup-delivery-mode> 00014 <backup-priority>9</backup-priority> 00015 <backup-time-to-live>60000</backup-time-to-live> 00016 <changes-delivery-mode>0</changes-delivery-mode> 00017 <changes-priority>9</changes-priority> 00018 <changes-time-to-live>60000</changes-time-to-live> 00019 <source-name-property>SOURCE_NAME</source-name-property> 00020 <source-hostname-property>SOURCE_HOSTNAME</source-hostname-property> 00021 <backup-property>BACKUP</backup-property> 00022 <alarms-number-property>ALARMS_NUMBER</alarms-number-property> 00023 <channel-pool-size>10</channel-pool-size> 00024 <channel-property>CHANNEL</channel-property> 00025 </ASI-configuration> 00026 */ 00027 const char * const ASI_VERSION = "0.9"; 00028 const char * const ALARMS_TOPIC = "CMW.ALARM_SYSTEM.ALARMS.SOURCES"; 00029 const char * const ALARM_SOURCE_NAME = "ALARM_SYSTEM_SOURCES"; 00030 const int BACKUP_DELIVERY_MODE = 0; 00031 const int BACKUP_PRIORITY = 9; 00032 const long BACKUP_TIME_TO_LIVE = 60000; 00033 const int CHANGES_DELIVERY_MODE = 0; 00034 const int CHANGES_PRIORITY = 9; 00035 const long CHANGES_TIME_TO_LIVE = 60000; 00036 }; 00037 #endif