NCBI C++ ToolKit
|
Search Toolkit Book for CJobContextProcessWatcher
Classes | |
struct | SParams |
Public Member Functions | |
CJobContextProcessWatcher (SParams &p) | |
virtual EAction | OnStart (TProcessHandle pid) |
This method is called when the process has just been started by the ExecWait() method. More... | |
virtual EAction | Watch (TProcessHandle pid) |
This method is getting called periodically during the process execution by the ExecWait() method. More... | |
![]() | |
CTimedProcessWatcher (SParams &p) | |
![]() | |
virtual | ~IProcessWatcher () |
Protected Attributes | |
CWorkerNodeJobContext & | m_JobContext |
![]() | |
CRemoteAppReaper::CScheduler & | m_ProcessManager |
const string | m_ProcessType |
const CTimer | m_Deadline |
Private Attributes | |
CTimer | m_KeepAlive |
CRemoteAppTimeoutReporter & | m_TimeoutReporter |
Additional Inherited Members | |
![]() | |
enum | EAction { eContinue , eStop , eExit } |
An action which the ExecWait() method should take after the Watch() method has returned. More... | |
Definition at line 606 of file exec_helpers.cpp.
|
inline |
Definition at line 628 of file exec_helpers.cpp.
|
inlinevirtual |
This method is called when the process has just been started by the ExecWait() method.
pid | Process Id to monitor |
Reimplemented from CPipe::IProcessWatcher.
Definition at line 635 of file exec_helpers.cpp.
References CNetScheduleAdmin::eShutdownImmediate, CPipe::IProcessWatcher::eStop, CWorkerNodeJobContext::GetShutdownLevel(), LOG_POST, m_JobContext, Note, CPipe::IProcessWatcher::OnStart(), and NStr::UInt8ToString().
|
inlinevirtual |
This method is getting called periodically during the process execution by the ExecWait() method.
pid | Process Id to monitor |
Reimplemented from CTimedProcessWatcher.
Reimplemented in CMonitoredProcessWatcher.
Definition at line 647 of file exec_helpers.cpp.
References CPipe::IProcessWatcher::eContinue, CNetScheduleAdmin::eShutdownImmediate, CPipe::IProcessWatcher::eStop, CWorkerNodeJobContext::GetShutdownLevel(), CTimer::IsExpired(), CWorkerNodeJobContext::JobDelayExpiration(), CTimedProcessWatcher::m_Deadline, m_JobContext, m_KeepAlive, m_TimeoutReporter, CTimer::PresetSeconds(), CRemoteAppTimeoutReporter::Report(), CTimer::Restart(), CWorkerNodeJobContext::ReturnJob(), and CTimedProcessWatcher::Watch().
Referenced by CMonitoredProcessWatcher::Watch().
|
protected |
Definition at line 671 of file exec_helpers.cpp.
Referenced by CMonitoredProcessWatcher::MonitorRun(), OnStart(), Watch(), and CMonitoredProcessWatcher::x_Log().
|
private |
Definition at line 674 of file exec_helpers.cpp.
Referenced by Watch().
|
private |
Definition at line 675 of file exec_helpers.cpp.
Referenced by Watch().