1. Fixing memory leaks in alistorage
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / AliStorageTypes.h
CommitLineData
5eb34a26 1#ifndef AliStorageTypes_H
2#define AliStorageTypes_H
3
164d3d29 4#include <TSystem.h>
5eb34a26 5
164d3d29 6inline const char* GetConfigFilePath()
7{
8 return Form("%s/MONITOR/alistoragemanager/setupStorageDatabase.sh",
9 gSystem->Getenv("ALICE_ROOT"));
10}
11
12enum 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 23enum statusType{
24 STATUS_WAITING=1,
25 STATUS_OK,
26 STATUS_ERROR,
27 STATUS_DOWN
28};
29
30enum 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,
a410aca4 38 REQUEST_GET_PREV_EVENT,
5eb34a26 39 REQUEST_GET_LAST_EVENT,
a410aca4 40 REQUEST_GET_FIRST_EVENT,
5eb34a26 41 REQUEST_MARK_EVENT,
42 REQUEST_SET_PARAMS,
43 REQUEST_GET_PARAMS
44};
45
46struct clientRequestStruct{
47 int messageType;
48 int maxStorageSize;
49 int maxOccupation;
50 int removeEvents;
51 int eventsInChunk;
52};
53
54struct eventStruct{
55 int runNumber;
56 int eventNumber;
57};
58
59struct listRequestStruct{
60 int runNumber[2];
61 int eventNumber[2];
62 int marked[2];
63 int multiplicity[2];
64 char system[2][20];
65};
66
67struct serverRequestStruct{
68 int messageType;
69 struct eventStruct event;
70 struct listRequestStruct list;
71};
72
73typedef struct serverListStruct{
74 int runNumber;
75 int eventNumber;
76 char system[20];
77 int multiplicity;
78 int marked;
79}serverListStruct;
80
81#endif