Skip to content
Snippets Groups Projects
Commit 072b4c28 authored by Michael Davis's avatar Michael Davis
Browse files

[cta_frontend] Adds Request::processAdminCmd()

parent f09ee4cd
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
{
using namespace cta::xrd;
case Request::kAdmincmd:
case Request::kAdmincmd: processAdminCmd(request.admincmd(), response); break;
case Request::kNotification: processNotification(request.notification(), response); break;
case Request::REQUEST_NOT_SET: throw PbException("Request message has not been set.");
default: throw PbException("Unrecognized Request message. "
......@@ -43,6 +43,12 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
void RequestMessage::processAdminCmd(const cta::xrd::AdminCmd &admin_cmd, cta::xrd::Response &response)
{
}
void RequestMessage::processNotification(const cta::eos::Notification &notification, cta::xrd::Response &response)
{
switch(notification.wf().event())
......
......@@ -45,11 +45,19 @@ public:
void process(const cta::xrd::Request &request, cta::xrd::Response &response);
private:
/*!
* Process the Admin Command message type
*
* @param[in] admincmd Admin command from the cta admin cli
* @param[out] response Response message
*/
void processAdminCmd(const cta::xrd::AdminCmd &admin_cmd, cta::xrd::Response &response);
/*!
* Process the EOS WFE Notification message type
*
* @param[in] notification Notification request message from EOS WFE
* @param[out] response Response message to return to EOS
* @param[out] response Response message
*/
void processNotification(const cta::eos::Notification &notification, cta::xrd::Response &response);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment