17 #ifndef LIB_WINSS_SUPERVISE_STATE_LISTENER_HPP_ 18 #define LIB_WINSS_SUPERVISE_STATE_LISTENER_HPP_ 22 #include "../control.hpp" 45 std::queue<winss::SuperviseNotification> waiting;
94 #endif // LIB_WINSS_SUPERVISE_STATE_LISTENER_HPP_ SuperviseStateListener & operator=(const SuperviseStateListener &)=delete
No copy.
Wait for the service to go down and back up.
Definition: state_listener.hpp:35
bool IsEnabled()
Gets if the listener is enabled.
Definition: state_listener.cpp:30
No-op.
Definition: state_listener.hpp:31
bool HandleReceived(const std::vector< char > &message)
Handle the received event.
Definition: state_listener.cpp:74
A listener for inbound control item events.
Definition: control.hpp:217
Wait for the finish process to end.
Definition: state_listener.hpp:34
Wait for the run process to end.
Definition: state_listener.hpp:33
A supervisor state listener which is race-condition free.
Definition: state_listener.hpp:41
Definition: case_ignore.hpp:23
Wait for the run process to start.
Definition: state_listener.hpp:32
SuperviseStateListener(const winss::SuperviseStateFile &state_file, SuperviseStateListenerAction action)
Supervise state listener constructor.
Definition: state_listener.cpp:25
SuperviseStateListenerAction
The actions which the listener can wait for.
Definition: state_listener.hpp:30
Serializes the state file but can also read it as a human-readable message.
Definition: state_file.hpp:31
bool CanStart()
Gets if the listener can start.
Definition: state_listener.cpp:34
void HandleConnected()
Handle the connected event.
Definition: state_listener.cpp:38