artdaq::xmlrpc_commander Class Reference

The xmlrpc_commander class serves as the XMLRPC server run in each artdaq application. More...

#include <artdaq/ExternalComms/xmlrpc_commander.hh>

Inheritance diagram for artdaq::xmlrpc_commander:
artdaq::CommanderInterface

List of all members.

Public Member Functions

 xmlrpc_commander (fhicl::ParameterSet ps, artdaq::Commandable &commandable)
 xmlrpc_commander Constructor
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.
std::string send_unregister_monitor (std::string monitor_label) override
 Send an unregister_monitor command over XMLRPC.

Public Attributes

std::mutex mutex_
 XMLRPC mutex.

Detailed Description

The xmlrpc_commander class serves as the XMLRPC server run in each artdaq application.

Definition at line 17 of file xmlrpc_commander.hh.


Constructor & Destructor Documentation

artdaq::xmlrpc_commander::xmlrpc_commander ( fhicl::ParameterSet  ps,
artdaq::Commandable commandable 
)

xmlrpc_commander Constructor

Parameters:
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 783 of file xmlrpc_commander.cc.


Member Function Documentation

std::string artdaq::xmlrpc_commander::send_register_monitor ( std::string  monitor_fhicl  )  [override, virtual]

Send a register_monitor command over XMLRPC.

Parameters:
monitor_fhicl FHiCL string contianing monitor configuration
Returns:
Return status from XMLRPC

Reimplemented from artdaq::CommanderInterface.

Definition at line 930 of file xmlrpc_commander.cc.

std::string artdaq::xmlrpc_commander::send_unregister_monitor ( std::string  monitor_label  )  [override, virtual]

Send an unregister_monitor command over XMLRPC.

Parameters:
monitor_label Label of the monitor to unregister
Returns:
Return status from XMLRPC

Reimplemented from artdaq::CommanderInterface.

Definition at line 959 of file xmlrpc_commander.cc.


The documentation for this class was generated from the following files:

Generated on 27 Jan 2018 for artdaq by  doxygen 1.6.1