artdaq  v3_12_02
DispatcherApp.hh
1 #ifndef artdaq_Application_MPI2_DispatcherApp_hh
2 #define artdaq_Application_MPI2_DispatcherApp_hh
3 
4 #include "artdaq/Application/Commandable.hh"
5 #include "artdaq/Application/DispatcherCore.hh"
6 
7 #include "canvas/Persistency/Provenance/RunID.h"
8 
9 #include <memory>
10 
11 namespace artdaq {
12 class DispatcherApp;
13 }
14 
19 {
20 public:
24  DispatcherApp();
25 
29  DispatcherApp(DispatcherApp const&) = delete;
30 
34  virtual ~DispatcherApp() = default;
35 
40  DispatcherApp& operator=(DispatcherApp const&) = delete;
41  DispatcherApp(DispatcherApp&&) = delete;
43 
44  // these methods provide the operations that are used by the state machine
50  bool do_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
51 
57  bool do_start(art::RunID id, uint64_t, uint64_t) override;
58 
63  bool do_stop(uint64_t, uint64_t) override;
64 
69  bool do_pause(uint64_t, uint64_t) override;
70 
75  bool do_resume(uint64_t, uint64_t) override;
76 
81  bool do_shutdown(uint64_t) override;
82 
87  bool do_soft_initialize(fhicl::ParameterSet const&, uint64_t, uint64_t) override;
88 
93  bool do_reinitialize(fhicl::ParameterSet const&, uint64_t, uint64_t) override;
94 
100  std::string report(std::string const& which) const override;
101 
107  std::string register_monitor(fhicl::ParameterSet const& info) override;
108 
114  std::string unregister_monitor(std::string const& label) override;
115 
116 private:
117  std::unique_ptr<DispatcherCore> Dispatcher_ptr_;
118 };
119 
120 #endif
DispatcherApp is an artdaq::Commandable derived class which controls the DispatcherCore.
Commandable is the base class for all artdaq components which implement the artdaq state machine...
Definition: Commandable.hh:22
virtual ~DispatcherApp()=default
Default virtual destructor.
bool do_start(art::RunID id, uint64_t, uint64_t) override
Start the DispatcherCore.
bool do_pause(uint64_t, uint64_t) override
Pause the DispatcherCore.
bool do_resume(uint64_t, uint64_t) override
Resume the DispatcherCore.
std::string unregister_monitor(std::string const &label) override
Remove an art Online Monitor from the DispatcherCore.
bool do_initialize(fhicl::ParameterSet const &pset, uint64_t, uint64_t) override
Initialize the DispatcherCore.
DispatcherApp()
DispatcherApp Constructor.
bool do_stop(uint64_t, uint64_t) override
Stop the DispatcherCore.
bool do_soft_initialize(fhicl::ParameterSet const &, uint64_t, uint64_t) override
Soft-initialize the DispatcherCore. No-Op.
bool do_reinitialize(fhicl::ParameterSet const &, uint64_t, uint64_t) override
Reinitialize the DispatcherCore. No-Op.
std::string register_monitor(fhicl::ParameterSet const &info) override
Register an art Online Monitor to the DispatcherCore.
std::string report(std::string const &which) const override
If which is &quot;transition_status&quot;, report the status of the last transition. Otherwise pass through to ...
bool do_shutdown(uint64_t) override
Shutdown the DispatcherCore.
DispatcherApp & operator=(DispatcherApp const &)=delete
Copy Assignment operator is Deleted.