1 #ifndef AliStorageAdministratorPanel_H
2 #define AliStorageAdministratorPanel_H
4 #include "AliStorageEventManager.h"
16 class AliStorageAdministratorPanel : public TGMainFrame
20 AliStorageAdministratorPanel();
21 virtual ~AliStorageAdministratorPanel();
25 //gui components and methods
26 TGLabel *fConnectionLabel;
28 TGLabel *fSavingLabel;
29 TGLabel *fCurrentSizeLabel;
30 TGLabel *fMaxSizeLabel;
31 TGLabel *fMaxOccupationLabel;
32 TGLabel *fRemoveEventsLabel;
33 TGLabel *fEventsInChunkLabel;
36 void SetupThreadsFrame();
38 void SetupFixedMenuBar();
39 void SetupDockableMenuBar();
42 void SetLabel(TGLabel *label, int option);
43 void SetLabelValue(TGLabel *label, long value, int option);
45 //handle different actions
51 void onServerListEvents();
52 void onServerMarkEvent();
53 void onServerGetEvent();
54 void onClientSetParams();
55 void onServerGetNextEvent();
56 void onServerGetLastEvent();
64 //handle different messages
65 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
69 TThread *fCommunicationThread;
70 zmq::context_t *fCommunicationContext;
71 zmq::socket_t *fCommunicationSocket;
72 std::string fStorageServer;
73 static void* CheckStateHandler(void *arg);
74 void CheckClientState(int option);
76 zmq::context_t *fServerContext;
77 zmq::socket_t *fServerSocket;//socket for two-way communication with AliStorageServerThread
78 AliStorageEventManager *fEventManager;
80 AliStorageAdministratorPanel(const AliStorageAdministratorPanel&);
81 AliStorageAdministratorPanel& operator=(const AliStorageAdministratorPanel&);
83 ClassDef(AliStorageAdministratorPanel,0);