Belle II Software development
RFDqmServer.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef RF_DQMSERVER_H
9#define RF_DQMSERVER_H
10
11#include <string>
12
13#include "daq/rfarm/manager/RFConf.h"
14#include "daq/rfarm/manager/RFProcessManager.h"
15#include "daq/rfarm/manager/RFLogManager.h"
16
17#include "daq/rfarm/manager/RFServerBase.h"
18
19#define MAXNODES 256
20
21namespace Belle2 {
27 class RFDqmServer : public RFServerBase {
28 public:
29 RFDqmServer(std::string conffile);
31
32 // Functions to be hooked to NSM
33 int Configure(NSMmsg*, NSMcontext*) override;
34 int UnConfigure(NSMmsg*, NSMcontext*) override;
35 int Start(NSMmsg*, NSMcontext*) override;
36 int Stop(NSMmsg*, NSMcontext*) override;
37 int Restart(NSMmsg*, NSMcontext*) override;
38
39 // Server function
40 void server();
41
42 // Cleanup
43 void cleanup();
44
45 private:
46 RFConf* m_conf;
47 RFProcessManager* m_proc;
48 RFLogManager* m_log;
49
50 int m_pid_dqm;
51 int m_pid_relay;
52
53 int m_expno;
54 int m_runno;
55
56 };
58}
59#endif
60
Abstract base class for different kinds of events.
Definition: nsm2.h:224