Interface for classes that define how an application get stopped.
More...
#include <ArmarXCore/util/ScenarioManagerCommon/executor/StopStrategy.h>
|
| static constexpr std::chrono::milliseconds | TerminationTimeout {10000} |
| | How long to wait for a signalled process to actually disappear before giving up.
|
| |
Interface for classes that define how an application get stopped.
Definition at line 27 of file StopStrategy.h.
◆ StopStrategy()
◆ awaitTermination()
Waits until the process that was signalled has terminated, then clears the application's pid.
A stop is only finished once the process is really gone. Returning earlier would let a directly following start race with a process that is still shutting down, and would make the status poller and the stopper fight over the pid and the cached pid file.
- Parameters
-
| application | the application that was signalled. |
| signalledPid | the pid that was signalled, or -1 if nothing was signalled. |
Definition at line 41 of file StopStrategy.cpp.
◆ stop()
Stops an application.
Implement this method to define the behaviour when stopping applications.
- Parameters
-
| application | application to be stopped. |
Implemented in Kill, Stop, and StopAndKill.
◆ stopper
◆ TerminationTimeout
| std::chrono::milliseconds TerminationTimeout {10000} |
|
staticconstexprprotected |
How long to wait for a signalled process to actually disappear before giving up.
Definition at line 35 of file StopStrategy.h.
The documentation for this class was generated from the following files: