AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliStorageAdministratorPanel.h
Go to the documentation of this file.
1 #ifndef AliStorageAdministratorPanel_H
2 #define AliStorageAdministratorPanel_H
3 
4 #include "AliZMQManager.h"
5 
6 #include <TGFrame.h>
7 #include <TGLabel.h>
8 #include <TThread.h>
9 
10 class AliStorageAdministratorPanel : public TGMainFrame
11 {
12 
13 public:
16 private:
18 
19  //gui components and methods
20  TGLabel *fConnectionLabel;
21  TGLabel *fDataLabel;
22  TGLabel *fSavingLabel;
24  TGLabel *fMaxSizeLabel;
28 
29  void InitWindow();
30  void SetupThreadsFrame();
31  void SetupToolbar();
32  void SetupFixedMenuBar();
33  void SetupDockableMenuBar();
34 
35  //set labels method
36  void SetLabel(TGLabel *label, int option);
37  void SetLabelValue(TGLabel *label, long value, int option);
38 
39  //handle different actions
40  void onExit();
41  void onOption1();
42  void onOption2();
43  void onOption3();
44 
45  void onServerListEvents();
46  void onServerMarkEvent();
47  void onServerMarkAllEvents();
48  void onServerGetEvent();
49  void onClientSetParams();
50  void onServerGetNextEvent();
51  void onServerGetLastEvent();
52 
53  //client params
58 
59  //handle different messages
60  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
61  void CloseWindow();
62 
63  //socket connection
65  storageSockets fCommunicationSocket;
66  static void Dispatch(void *arg){static_cast<AliStorageAdministratorPanel*>(arg)->CheckStateHandle();}
67  void CheckStateHandle();
68  void CheckClientState(int option);
69 
70  storageSockets fServerSocket;//socket for two-way communication with AliStorageServerThread
72 
75 
77 };
78 
79 #endif
void SetLabelValue(TGLabel *label, long value, int option)
void SetLabel(TGLabel *label, int option)
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
AliStorageAdministratorPanel & operator=(const AliStorageAdministratorPanel &)
ZMQ communication manager.
Definition: AliZMQManager.h:57
ClassDef(AliStorageAdministratorPanel, 0)