summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/cmdq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/cmdq.cpp')
-rw-r--r--configd/src/apps/sentinel/cmdq.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/cmdq.cpp b/configd/src/apps/sentinel/cmdq.cpp
new file mode 100644
index 00000000000..8fa3726c7f6
--- /dev/null
+++ b/configd/src/apps/sentinel/cmdq.cpp
@@ -0,0 +1,26 @@
+// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#include "cmdq.h"
+#include <vespa/fnet/frt/frt.h>
+
+namespace config::sentinel {
+
+Cmd::~Cmd()
+{
+ _req->Return();
+}
+
+void
+Cmd::retError(const char *errorString) const
+{
+ _req->SetError(FRTE_RPC_METHOD_FAILED, errorString);
+}
+
+void
+Cmd::retValue(const char *valueString) const
+{
+ FRT_Values *dst = _req->GetReturn();
+ dst->AddString(valueString);
+}
+
+}