artdaq
v3_00_03
|
The xmlrpc_commander class serves as the XMLRPC server run in each artdaq application. More...
#include <artdaq/ExternalComms/xmlrpc_commander.hh>
Public Member Functions | |
xmlrpc_commander (fhicl::ParameterSet ps, artdaq::Commandable &commandable) | |
xmlrpc_commander Constructor More... | |
void | run_server () override |
Run the XMLRPC server. | |
std::string | send_register_monitor (std::string monitor_fhicl) override |
Send a register_monitor command over XMLRPC More... | |
std::string | send_unregister_monitor (std::string monitor_label) override |
Send an unregister_monitor command over XMLRPC More... | |
![]() | |
CommanderInterface (const fhicl::ParameterSet &ps, artdaq::Commandable &commandable) | |
CommanderInterface Constructor. More... | |
CommanderInterface (const CommanderInterface &)=delete | |
Copy Constructor is deleted. | |
CommanderInterface & | operator= (const CommanderInterface &)=delete |
Copy Assignment operator is deleted. More... | |
virtual | ~CommanderInterface ()=default |
Default virtual Destructor. | |
virtual std::string | send_init (fhicl::ParameterSet, uint64_t, uint64_t) |
Using the transport mechanism, send an init command More... | |
virtual std::string | send_soft_init (fhicl::ParameterSet, uint64_t, uint64_t) |
Using the transport mechanism, send a soft_init command More... | |
virtual std::string | send_reinit (fhicl::ParameterSet, uint64_t, uint64_t) |
Using the transport mechanism, send a reinit command More... | |
virtual std::string | send_start (art::RunID, uint64_t, uint64_t) |
Using the transport mechanism, send a start command More... | |
virtual std::string | send_pause (uint64_t, uint64_t) |
Using the transport mechanism, send a pause command More... | |
virtual std::string | send_resume (uint64_t, uint64_t) |
Using the transport mechanism, send a resume command More... | |
virtual std::string | send_stop (uint64_t, uint64_t) |
Using the transport mechanism, send a stop command More... | |
virtual std::string | send_shutdown (uint64_t) |
Using the transport mechanism, send a shutdown command More... | |
virtual std::string | send_status () |
Using the transport mechanism, send a status command More... | |
virtual std::string | send_report (std::string) |
Using the transport mechanism, send a report command More... | |
virtual std::string | send_legal_commands () |
Using the transport mechanism, send a legal_commands command More... | |
virtual std::string | send_trace_get (std::string) |
Using the transport mechanism, send an send_trace_get command More... | |
virtual std::string | send_trace_set (std::string, std::string, uint64_t) |
Using the transport mechanism, send an send_trace_msgfacility_set command More... | |
virtual std::string | send_meta_command (std::string, std::string) |
Using the transport mechanism, send an send_meta_command command More... | |
Public Attributes | |
std::mutex | mutex_ |
XMLRPC mutex. | |
std::unique_ptr < xmlrpc_c::serverAbyss > | server |
XMLRPC server. | |
![]() | |
artdaq::Commandable & | _commandable |
Reference to the Commandable that this Commander Commands. More... | |
Additional Inherited Members | |
![]() | |
int | _id |
ID Number of this Commander. | |
The xmlrpc_commander class serves as the XMLRPC server run in each artdaq application.
Definition at line 17 of file xmlrpc_commander.hh.
artdaq::xmlrpc_commander::xmlrpc_commander | ( | fhicl::ParameterSet | ps, |
artdaq::Commandable & | commandable | ||
) |
xmlrpc_commander Constructor
ps | ParameterSet used for configuring xmlrpc_commander |
commandable | artdaq::Commandable object to send transition commands to |
xmlrpc_commander accepts the following Parameters: id: For XMLRPC, the ID should be the port to listen on server_url: When sending, location of XMLRPC server *
Definition at line 889 of file xmlrpc_commander.cc.
|
overridevirtual |
Send a register_monitor command over XMLRPC
monitor_fhicl | FHiCL string contianing monitor configuration |
Reimplemented from artdaq::CommanderInterface.
Definition at line 1040 of file xmlrpc_commander.cc.
|
overridevirtual |
Send an unregister_monitor command over XMLRPC
monitor_label | Label of the monitor to unregister |
Reimplemented from artdaq::CommanderInterface.
Definition at line 1069 of file xmlrpc_commander.cc.