FreeNOS
|
RecoveryClient provides a simple interface to the local core's RecoveryServer. More...
#include <RecoveryClient.h>
Public Member Functions | |
RecoveryClient (const ProcessID pid=RECOVERY_PID) | |
Class constructor function. More... | |
Recovery::Result | restartProcess (const ProcessID pid) const |
Restart a process. More... | |
Private Member Functions | |
Recovery::Result | request (RecoveryMessage &msg) const |
Send an IPC request to the RecoveryServer. More... | |
Private Attributes | |
const ProcessID | m_pid |
ProcessID of the RecoveryServer. More... | |
RecoveryClient provides a simple interface to the local core's RecoveryServer.
Definition at line 40 of file RecoveryClient.h.
RecoveryClient::RecoveryClient | ( | const ProcessID | pid = RECOVERY_PID | ) |
Class constructor function.
pid | Optional ProcessID of the RecoveryServer. |
Definition at line 22 of file RecoveryClient.cpp.
|
inlineprivate |
Send an IPC request to the RecoveryServer.
msg | Reference to the RecoveryMessage to send |
Definition at line 27 of file RecoveryClient.cpp.
References StrictSingleton< ChannelClient >::instance(), Recovery::IpcError, m_pid, RecoveryMessage::result, and ChannelClient::Success.
Referenced by restartProcess().
Recovery::Result RecoveryClient::restartProcess | ( | const ProcessID | pid | ) | const |
Restart a process.
pid | Process identifier of the program to restart. |
Definition at line 39 of file RecoveryClient.cpp.
References RecoveryMessage::action, RecoveryMessage::pid, ChannelMessage::Request, request(), Recovery::RestartProcess, and ChannelMessage::type.
Referenced by SysControl::restartProcess().
|
private |
ProcessID of the RecoveryServer.
Definition at line 74 of file RecoveryClient.h.
Referenced by request().