17 #ifndef LIB_WINSS_SUPERVISE_CONTROLLER_HPP_ 18 #define LIB_WINSS_SUPERVISE_CONTROLLER_HPP_ 21 #include "../not_owning_ptr.hpp" 22 #include "../pipe_server.hpp" 85 bool Received(
const std::vector<char>& data);
102 #endif // LIB_WINSS_SUPERVISE_CONTROLLER_HPP_ A listener for server receiving data from pipe clients.
Definition: pipe_server.hpp:296
static const char kSvcDown
Down control char.
Definition: controller.hpp:44
static const char kSuperviseBroken
Broken event.
Definition: controller.hpp:52
bool Notify(winss::SuperviseNotification notification, const winss::SuperviseState &state)
Supervisor listener handler.
Definition: controller.cpp:48
static const char kSvcUp
Up control char.
Definition: controller.hpp:41
static const char kSvcExit
Exit control char.
Definition: controller.hpp:47
A controller for supervised processes.
Definition: controller.hpp:32
Definition: case_ignore.hpp:23
static const char kSuperviseStart
Start event.
Definition: controller.hpp:49
static const char kSuperviseEnd
End event.
Definition: controller.hpp:51
The state of the supervisor.
Definition: supervise.hpp:42
static const char kSuperviseFinished
Finished event.
Definition: controller.hpp:53
static const char kSvcKill
Kill control char.
Definition: controller.hpp:45
static const char kSuperviseExit
Exit event.
Definition: controller.hpp:54
SuperviseController & operator=(const SuperviseController &)=delete
No copy.
static const char kSvcTerm
Terminate control char.
Definition: controller.hpp:46
SuperviseController(winss::NotOwningPtr< winss::Supervise > supervise, winss::NotOwningPtr< winss::OutboundPipeServer > outbound, winss::NotOwningPtr< winss::InboundPipeServer > inbound)
Supervise controller constructor.
Definition: controller.cpp:39
The supervisor listener.
Definition: supervise.hpp:70
SuperviseNotification
The supervisor events which can occur.
Definition: supervise.hpp:57
A container for pointers where the lifetime should be owned by the caller.
Definition: not_owning_ptr.hpp:33
static const char kSvcOnceAtMost
Up once at most control char.
Definition: controller.hpp:43
bool Received(const std::vector< char > &data)
Pipe server received handler.
Definition: controller.cpp:81
static winss::SuperviseNotification GetNotification(char c)
Gets the notification for the given control char.
Definition: controller.cpp:121
static const char kSuperviseRun
Run event.
Definition: controller.hpp:50
static const char kSvcOnce
Up once code.
Definition: controller.hpp:42