summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/rpcserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/rpcserver.h')
-rw-r--r--configd/src/apps/sentinel/rpcserver.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/rpcserver.h b/configd/src/apps/sentinel/rpcserver.h
new file mode 100644
index 00000000000..f295975f224
--- /dev/null
+++ b/configd/src/apps/sentinel/rpcserver.h
@@ -0,0 +1,27 @@
+// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+#include <memory>
+
+#include "cmdq.h"
+#include "rpchooks.h"
+#include <vespa/fnet/frt/supervisor.h>
+
+namespace config::sentinel {
+
+class RpcServer
+{
+private:
+ FRT_Supervisor _supervisor;
+ RPCHooks _rpcHooks;
+ int _port;
+
+public:
+ RpcServer(int port, CommandQueue &cmdQ);
+ ~RpcServer();
+
+ int getPort() const { return _port; }
+};
+
+} // namespace config::sentinel