00001 #ifndef artdaq_Application_MPI2_RoutingMasterApp_hh
00002 #define artdaq_Application_MPI2_RoutingMasterApp_hh
00003
00004 #include <future>
00005
00006 #include "artdaq/Application/Commandable.hh"
00007 #include "artdaq/Application/RoutingMasterCore.hh"
00008
00009 namespace artdaq
00010 {
00011 class RoutingMasterApp;
00012 }
00013
00017 class artdaq::RoutingMasterApp : public artdaq::Commandable
00018 {
00019 public:
00023 RoutingMasterApp();
00024
00028 RoutingMasterApp(RoutingMasterApp const&) = delete;
00029
00033 virtual ~RoutingMasterApp() = default;
00034
00039 RoutingMasterApp& operator=(RoutingMasterApp const&) = delete;
00040
00041
00049 bool do_initialize(fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp) override;
00050
00058 bool do_start(art::RunID id, uint64_t timeout, uint64_t timestamp) override;
00059
00066 bool do_stop(uint64_t timeout, uint64_t timestamp) override;
00067
00074 bool do_pause(uint64_t timeout, uint64_t timestamp) override;
00075
00082 bool do_resume(uint64_t timeout, uint64_t timestamp) override;
00083
00089 bool do_shutdown(uint64_t timeout) override;
00090
00098 bool do_soft_initialize(fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp) override;
00099
00107 bool do_reinitialize(fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp) override;
00108
00114 void BootedEnter() override;
00115
00116
00122 std::string report(std::string const&) const override;
00123
00124 private:
00125 std::unique_ptr<artdaq::RoutingMasterCore> routing_master_ptr_;
00126 std::future<size_t> routing_master_future_;
00127 };
00128
00129 #endif