Merging STORAGE-dev to master
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / AliStorageTypes.h
similarity index 71%
rename from STORAGE/AliStorageTypes.h
rename to MONITOR/alistoragemanager/AliStorageTypes.h
index 1738a0d..b4cc90a 100644 (file)
@@ -1,12 +1,25 @@
 #ifndef AliStorageTypes_H
 #define AliStorageTypes_H
 
-//sockets
-const int gServerCommunicationPort = 5066;
-const int gEventsSubscriberPort = 5024;
-const int gClientCommunicationPort = 5088;
-const int gClientPublisherPort = 5077;
+#include <TSystem.h>
 
+inline const char* GetConfigFilePath()
+{
+       return Form("%s/MONITOR/alistoragemanager/setupStorageDatabase.sh",
+                   gSystem->Getenv("ALICE_ROOT"));
+}
+
+enum storageSockets{
+       SERVER_COMMUNICATION_REQ=0,
+       SERVER_COMMUNICATION_REP,
+       CLIENT_COMMUNICATION_REQ,
+       CLIENT_COMMUNICATION_REP,
+       EVENTS_SERVER_PUB,
+       EVENTS_SERVER_SUB,
+       XML_PUB,
+       NUMBER_OF_SOCKETS
+};
+       
 enum statusType{
        STATUS_WAITING=1,
        STATUS_OK,