Belle II Software  release-05-01-25
RFMaster.h
1 #ifndef RF_MASTER_H
2 #define RF_MASTER_H
3 //+
4 // File : RFMaster.h
5 // Description : Master node for RFARM
6 //
7 // Author : Ryosuke Itoh, IPNS, KEK
8 // Date : 31 - Jul - 2013
9 //-
10 
11 #include "daq/rfarm/manager/RFConf.h"
12 #include "daq/rfarm/manager/RFSharedMem.h"
13 #include "daq/rfarm/manager/RFLogManager.h"
14 
15 #include "daq/rfarm/manager/RFServerBase.h"
16 
17 namespace Belle2 {
22  class RFMaster : public RFServerBase {
23  public:
24  RFMaster(std::string conf);
25  ~RFMaster();
26 
27  // Functions to be hooked to NSM
28  int Configure(NSMmsg*, NSMcontext*);
29  int UnConfigure(NSMmsg*, NSMcontext*);
30  int Start(NSMmsg*, NSMcontext*);
31  int Stop(NSMmsg*, NSMcontext*);
32  int Restart(NSMmsg*, NSMcontext*);
33 
34  // Function to hook message funnctions
35  void Hook_Message_Handlers();
36 
37  // Message functions
38  static void Log_Handler(NSMmsg* msg, NSMcontext* ctx);
39 
40  // Server function
41  void monitor_loop();
42 
43 
44  private:
45  RFConf* m_conf;
46  RFSharedMem* m_shm;
47  RFLogManager* m_log;
48 
49  };
50 
52 }
53 #endif
54 
55 
56 
Belle2::RFMaster
Definition: RFMaster.h:22
NSMmsg
Definition: nsm2.h:217
Belle2::RFSharedMem
Definition: RFSharedMem.h:51
Belle2::RFLogManager
Definition: RFLogManager.h:18
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RFServerBase
Definition: RFServerBase.h:20
Belle2::RFConf
Definition: RFConf.h:24
NSMcontext_struct
Definition: nsmlib2.h:66