diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2019-02-04 12:38:00 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2019-02-05 10:52:53 +0000 |
commit | d716dcfb1906e3dbe1b245a5458f9855e4e6845a (patch) | |
tree | ae5a7bdd41d64675d5ba983ff593358a995cb782 /configd/src/apps/sentinel/config-handler.h | |
parent | 5bb268bee55c36935c134320e905b6cf3daccc00 (diff) |
add RPC server for start/stop of services
Diffstat (limited to 'configd/src/apps/sentinel/config-handler.h')
-rw-r--r-- | configd/src/apps/sentinel/config-handler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/config-handler.h b/configd/src/apps/sentinel/config-handler.h index eb22b7fada1..e33bbf1c8da 100644 --- a/configd/src/apps/sentinel/config-handler.h +++ b/configd/src/apps/sentinel/config-handler.h @@ -4,6 +4,8 @@ #include "service.h" #include "metrics.h" #include "state-api.h" +#include "cmdq.h" +#include "rpcserver.h" #include <vespa/config-sentinel.h> #include <vespa/config/config.h> #include <sys/types.h> @@ -29,6 +31,8 @@ private: ServiceMap _services; std::list<CommandConnection *> _connections; std::list<OutputConnection *> _outputConnections; + CommandQueue _cmdQ; + std::unique_ptr<RpcServer> _rpcServer; int _boundPort; int _commandSocket; StartMetrics _startMetrics; @@ -41,6 +45,7 @@ private: Service *serviceByName(const vespalib::string & name); void handleCommands(); void handleCommand(CommandConnection *c); + void handleCmd(const Cmd& cmd); void handleOutputs(); void handleChildDeaths(); |