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 {
26
27 class RFDqmServer : public RFServerBase {
28 public:
29 explicit RFDqmServer(const std::string& conffile);
30 ~RFDqmServer();
32 RFDqmServer(const RFDqmServer&) = delete;
33
35 RFDqmServer& operator=(const RFDqmServer&) = delete;
36
37 // Functions to be hooked to NSM
38 int Configure(NSMmsg*, NSMcontext*) override;
39 int UnConfigure(NSMmsg*, NSMcontext*) override;
40 int Start(NSMmsg*, NSMcontext*) override;
41 int Stop(NSMmsg*, NSMcontext*) override;
42 int Restart(NSMmsg*, NSMcontext*) override;
43
44 // Server function
45 void server();
46
47 // Cleanup
48 void cleanup();
49
50 private:
51 RFConf* m_conf;
52 RFProcessManager* m_proc;
53 RFLogManager* m_log;
54
55 int m_pid_dqm = 0;
56 int m_pid_relay = 0;
57
58 int m_expno = 0;
59 int m_runno = 0;
60
61 };
62
63}
64#endif
65
RFDqmServer & operator=(const RFDqmServer &)=delete
Operator = (disabled).
RFDqmServer(const RFDqmServer &)=delete
Copy constructor (disabled).
Abstract base class for different kinds of events.
Definition nsm2.h:224