NCBI C++ ToolKit
|
Search Toolkit Book for CTimedProcessWatcher
Classes | |
struct | SParams |
Public Member Functions | |
CTimedProcessWatcher (SParams &p) | |
virtual EAction | Watch (TProcessHandle pid) |
This method is getting called periodically during the process execution by the ExecWait() method. More... | |
Public Member Functions inherited from CPipe::IProcessWatcher | |
virtual | ~IProcessWatcher () |
virtual EAction | OnStart (TProcessHandle) |
This method is called when the process has just been started by the ExecWait() method. More... | |
Protected Attributes | |
CRemoteAppReaper::CScheduler & | m_ProcessManager |
const string | m_ProcessType |
const CTimer | m_Deadline |
Additional Inherited Members | |
Public Types inherited from CPipe::IProcessWatcher | |
enum | EAction { eContinue , eStop , eExit } |
An action which the ExecWait() method should take after the Watch() method has returned. More... | |
Definition at line 204 of file exec_helpers.cpp.
|
inline |
Definition at line 220 of file exec_helpers.cpp.
|
inlinevirtual |
This method is getting called periodically during the process execution by the ExecWait() method.
pid | Process Id to monitor |
Implements CPipe::IProcessWatcher.
Reimplemented in CMonitoredProcessWatcher, and CJobContextProcessWatcher.
Definition at line 227 of file exec_helpers.cpp.
References CPipe::IProcessWatcher::eContinue, CPipe::IProcessWatcher::eExit, ERR_POST, CPipe::IProcessWatcher::eStop, CTimer::IsExpired(), m_Deadline, m_ProcessManager, m_ProcessType, and CTimer::PresetSeconds().
Referenced by CJobContextProcessWatcher::Watch().
Definition at line 242 of file exec_helpers.cpp.
Referenced by Watch(), and CJobContextProcessWatcher::Watch().
|
protected |
Definition at line 240 of file exec_helpers.cpp.
Referenced by CMonitoredProcessWatcher::MonitorRun(), and Watch().
Definition at line 241 of file exec_helpers.cpp.
Referenced by Watch().