]>
Commit | Line | Data |
---|---|---|
5eb34a26 | 1 | #ifndef AliStorageTypes_H |
2 | #define AliStorageTypes_H | |
3 | ||
164d3d29 | 4 | #include <TSystem.h> |
5eb34a26 | 5 | |
164d3d29 | 6 | inline const char* GetConfigFilePath() |
7 | { | |
8 | return Form("%s/MONITOR/alistoragemanager/setupStorageDatabase.sh", | |
9 | gSystem->Getenv("ALICE_ROOT")); | |
10 | } | |
11 | ||
12 | enum storageSockets{ | |
13 | SERVER_COMMUNICATION_REQ=0, | |
14 | SERVER_COMMUNICATION_REP, | |
15 | CLIENT_COMMUNICATION_REQ, | |
16 | CLIENT_COMMUNICATION_REP, | |
17 | EVENTS_SERVER_PUB, | |
18 | EVENTS_SERVER_SUB, | |
19 | XML_PUB, | |
20 | NUMBER_OF_SOCKETS | |
21 | }; | |
22 | ||
5eb34a26 | 23 | enum statusType{ |
24 | STATUS_WAITING=1, | |
25 | STATUS_OK, | |
26 | STATUS_ERROR, | |
27 | STATUS_DOWN | |
28 | }; | |
29 | ||
30 | enum requestType{ | |
31 | REQUEST_CONNECTION=1, | |
32 | REQUEST_RECEIVING, | |
33 | REQUEST_SAVING, | |
34 | REQUEST_CURRENT_SIZE, | |
35 | REQUEST_LIST_EVENTS, | |
36 | REQUEST_GET_EVENT, | |
37 | REQUEST_GET_NEXT_EVENT, | |
38 | REQUEST_GET_LAST_EVENT, | |
39 | REQUEST_MARK_EVENT, | |
40 | REQUEST_SET_PARAMS, | |
41 | REQUEST_GET_PARAMS | |
42 | }; | |
43 | ||
44 | struct clientRequestStruct{ | |
45 | int messageType; | |
46 | int maxStorageSize; | |
47 | int maxOccupation; | |
48 | int removeEvents; | |
49 | int eventsInChunk; | |
50 | }; | |
51 | ||
52 | struct eventStruct{ | |
53 | int runNumber; | |
54 | int eventNumber; | |
55 | }; | |
56 | ||
57 | struct listRequestStruct{ | |
58 | int runNumber[2]; | |
59 | int eventNumber[2]; | |
60 | int marked[2]; | |
61 | int multiplicity[2]; | |
62 | char system[2][20]; | |
63 | }; | |
64 | ||
65 | struct serverRequestStruct{ | |
66 | int messageType; | |
67 | struct eventStruct event; | |
68 | struct listRequestStruct list; | |
69 | }; | |
70 | ||
71 | typedef struct serverListStruct{ | |
72 | int runNumber; | |
73 | int eventNumber; | |
74 | char system[20]; | |
75 | int multiplicity; | |
76 | int marked; | |
77 | }serverListStruct; | |
78 | ||
79 | #endif |