artdaq
v2_02_03
|
RoutingMasterApp is an artdaq::Commandable derived class which controls the RoutingMasterCore state machine. More...
#include <artdaq/Application/RoutingMasterApp.hh>
Public Member Functions | |
RoutingMasterApp (int rank, std::string name) | |
RoutingMasterApp Constructor. More... | |
RoutingMasterApp (RoutingMasterApp const &)=delete | |
Copy Constructor is deleted. | |
virtual | ~RoutingMasterApp ()=default |
Default Destructor. | |
RoutingMasterApp & | operator= (RoutingMasterApp const &)=delete |
Copy Assignment Operator is deleted. More... | |
bool | do_initialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) override |
Initialize the RoutingMasterCore. More... | |
bool | do_start (art::RunID id, uint64_t timeout, uint64_t timestamp) override |
Start the RoutingMasterCore. More... | |
bool | do_stop (uint64_t timeout, uint64_t timestamp) override |
Stop the RoutingMasterCore. More... | |
bool | do_pause (uint64_t timeout, uint64_t timestamp) override |
Pause the RoutingMasterCore. More... | |
bool | do_resume (uint64_t timeout, uint64_t timestamp) override |
Resume the RoutingMasterCore. More... | |
bool | do_shutdown (uint64_t timeout) override |
Shutdown the RoutingMasterCore. More... | |
bool | do_soft_initialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) override |
Soft-Initialize the RoutingMasterCore. More... | |
bool | do_reinitialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) override |
Reinitialize the RoutingMasterCore. More... | |
void | BootedEnter () override |
Action taken upon entering the "Booted" state. More... | |
std::string | report (std::string const &) const override |
If which is "transition_status", report the status of the last transition. Otherwise pass through to AggregatorCore. More... | |
![]() | |
Commandable () | |
Commandable (Commandable const &)=delete | |
Copy Constructor is deleted. | |
virtual | ~Commandable ()=default |
Default Destructor. | |
Commandable & | operator= (Commandable const &)=delete |
Copy Assignment operator is deleted. More... | |
bool | initialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) |
Processes the initialize request. More... | |
bool | start (art::RunID id, uint64_t timeout, uint64_t timestamp) |
Processes the start transition. More... | |
bool | stop (uint64_t timeout, uint64_t timestamp) |
Processes the stop transition. More... | |
bool | pause (uint64_t timeout, uint64_t timestamp) |
Processes the pause transition. More... | |
bool | resume (uint64_t timeout, uint64_t timestamp) |
Processes the resume transition. More... | |
bool | shutdown (uint64_t timeout) |
Processes the shutdown transition. More... | |
bool | soft_initialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) |
Processes the soft-initialize request. More... | |
bool | reinitialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) |
Processes the reinitialize request. More... | |
bool | in_run_failure () |
Actions taken when the in_run_failure state is set. More... | |
std::string | status () const |
Returns the current state of the Commandable. More... | |
virtual bool | reset_stats (std::string const &which) |
Virutal function which resets statistics. More... | |
virtual std::string | register_monitor (fhicl::ParameterSet const &) |
Perform the register_monitor action. More... | |
virtual std::string | unregister_monitor (std::string const &) |
Perform the unregister_monitor action. More... | |
std::vector< std::string > | legal_commands () const |
Get the legal transition commands from the current state. More... | |
virtual void | badTransition (const std::string &trans) |
This function is called when an attempt is made to call an illegal transition. More... | |
virtual void | InRunExit () |
Perform actions upon leaving the InRun state. More... | |
Additional Inherited Members | |
![]() | |
std::string | current_state () const |
Return the name of the current state. More... | |
![]() | |
CommandableContext | fsm_ |
The generated State Machine (using smc_compiler) | |
bool | external_request_status_ |
Whether the last command succeeded. | |
std::string | report_string_ |
Status information about the last command. | |
RoutingMasterApp is an artdaq::Commandable derived class which controls the RoutingMasterCore state machine.
Definition at line 17 of file RoutingMasterApp.hh.
artdaq::RoutingMasterApp::RoutingMasterApp | ( | int | rank, |
std::string | name | ||
) |
RoutingMasterApp Constructor.
rank | Rank of this RoutingMaster |
name | Friendly name of this application instance (MessageFacility Category) |
Default constructor.
Definition at line 6 of file RoutingMasterApp.cc.
|
overridevirtual |
Action taken upon entering the "Booted" state.
This resets the RoutingMasterCore pointer
Reimplemented from artdaq::Commandable.
Definition at line 156 of file RoutingMasterApp.cc.
|
overridevirtual |
Initialize the RoutingMasterCore.
pset | ParameterSet used to configure the RoutingMasterCore |
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 13 of file RoutingMasterApp.cc.
|
overridevirtual |
Pause the RoutingMasterCore.
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 81 of file RoutingMasterApp.cc.
|
overridevirtual |
Reinitialize the RoutingMasterCore.
pset | ParameterSet used to configure the RoutingMasterCore |
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 144 of file RoutingMasterApp.cc.
|
overridevirtual |
Resume the RoutingMasterCore.
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 102 of file RoutingMasterApp.cc.
|
overridevirtual |
Shutdown the RoutingMasterCore.
timeout | Timeout for transition |
Reimplemented from artdaq::Commandable.
Definition at line 119 of file RoutingMasterApp.cc.
|
overridevirtual |
Soft-Initialize the RoutingMasterCore.
pset | ParameterSet used to configure the RoutingMasterCore |
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 131 of file RoutingMasterApp.cc.
|
overridevirtual |
Start the RoutingMasterCore.
id | Run ID of new run |
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 35 of file RoutingMasterApp.cc.
|
overridevirtual |
Stop the RoutingMasterCore.
timeout | Timeout for transition |
timestamp | Timestamp of transition |
Reimplemented from artdaq::Commandable.
Definition at line 59 of file RoutingMasterApp.cc.
|
delete |
Copy Assignment Operator is deleted.
|
overridevirtual |
If which is "transition_status", report the status of the last transition. Otherwise pass through to AggregatorCore.
which | What to report on |
Reimplemented from artdaq::Commandable.
Definition at line 167 of file RoutingMasterApp.cc.