artdaq::RoutingMasterApp Class Reference

RoutingMasterApp is an artdaq::Commandable derived class which controls the RoutingMasterCore state machine. More...

#include <artdaq/Application/RoutingMasterApp.hh>

Inheritance diagram for artdaq::RoutingMasterApp:
artdaq::Commandable

List of all members.

Public Member Functions

 RoutingMasterApp (int rank, std::string name)
 RoutingMasterApp Constructor.
 RoutingMasterApp (RoutingMasterApp const &)
 Copy Constructor is deleted.
virtual ~RoutingMasterApp ()
 Default Destructor.
RoutingMasterAppoperator= (RoutingMasterApp const &)
 Copy Assignment Operator is deleted.
bool do_initialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) override
 Initialize the RoutingMasterCore.
bool do_start (art::RunID id, uint64_t timeout, uint64_t timestamp) override
 Start the RoutingMasterCore.
bool do_stop (uint64_t timeout, uint64_t timestamp) override
 Stop the RoutingMasterCore.
bool do_pause (uint64_t timeout, uint64_t timestamp) override
 Pause the RoutingMasterCore.
bool do_resume (uint64_t timeout, uint64_t timestamp) override
 Resume the RoutingMasterCore.
bool do_shutdown (uint64_t timeout) override
 Shutdown the RoutingMasterCore.
bool do_soft_initialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) override
 Soft-Initialize the RoutingMasterCore.
bool do_reinitialize (fhicl::ParameterSet const &pset, uint64_t timeout, uint64_t timestamp) override
 Reinitialize the RoutingMasterCore.
void BootedEnter () override
 Action taken upon entering the "Booted" state.
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.

Detailed Description

RoutingMasterApp is an artdaq::Commandable derived class which controls the RoutingMasterCore state machine.

Definition at line 17 of file RoutingMasterApp.hh.


Constructor & Destructor Documentation

artdaq::RoutingMasterApp::RoutingMasterApp ( int  rank,
std::string  name 
)

RoutingMasterApp Constructor.

Parameters:
rank Rank of this RoutingMaster
name Friendly name of this application instance (MessageFacility Category)

Default constructor.

Definition at line 6 of file RoutingMasterApp.cc.


Member Function Documentation

void artdaq::RoutingMasterApp::BootedEnter (  )  [override, virtual]

Action taken upon entering the "Booted" state.

This resets the RoutingMasterCore pointer

Reimplemented from artdaq::Commandable.

Definition at line 156 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_initialize ( fhicl::ParameterSet const &  pset,
uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Initialize the RoutingMasterCore.

Parameters:
pset ParameterSet used to configure the RoutingMasterCore
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 13 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_pause ( uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Pause the RoutingMasterCore.

Parameters:
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 81 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_reinitialize ( fhicl::ParameterSet const &  pset,
uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Reinitialize the RoutingMasterCore.

Parameters:
pset ParameterSet used to configure the RoutingMasterCore
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 144 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_resume ( uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Resume the RoutingMasterCore.

Parameters:
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 102 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_shutdown ( uint64_t  timeout  )  [override, virtual]

Shutdown the RoutingMasterCore.

Parameters:
timeout Timeout for transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 119 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_soft_initialize ( fhicl::ParameterSet const &  pset,
uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Soft-Initialize the RoutingMasterCore.

Parameters:
pset ParameterSet used to configure the RoutingMasterCore
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 131 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_start ( art::RunID  id,
uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Start the RoutingMasterCore.

Parameters:
id Run ID of new run
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 35 of file RoutingMasterApp.cc.

bool artdaq::RoutingMasterApp::do_stop ( uint64_t  timeout,
uint64_t  timestamp 
) [override, virtual]

Stop the RoutingMasterCore.

Parameters:
timeout Timeout for transition
timestamp Timestamp of transition
Returns:
Whether the transition succeeded

Reimplemented from artdaq::Commandable.

Definition at line 59 of file RoutingMasterApp.cc.

RoutingMasterApp& artdaq::RoutingMasterApp::operator= ( RoutingMasterApp const &   ) 

Copy Assignment Operator is deleted.

Returns:
RoutingMasterApp copy

Reimplemented from artdaq::Commandable.

std::string artdaq::RoutingMasterApp::report ( std::string const &  which  )  const [override, virtual]

If which is "transition_status", report the status of the last transition. Otherwise pass through to AggregatorCore.

Parameters:
which What to report on
Returns:
Report string. Empty for unknown "which" parameter

Reimplemented from artdaq::Commandable.

Definition at line 167 of file RoutingMasterApp.cc.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on 23 May 2017 for artdaq by  doxygen 1.6.1