45 const int previousPid = application->getPid();
53 if (application->getPid() == previousPid)
ApplicationStopperPtr getStopper()
Returns the stopper used by this StopStrategy.
void stop(Data_Structure::ApplicationInstancePtr application) override
Stops an application.
StopAndKill(ApplicationStopperPtr stopper, int delay)
Constructor that sets the ApplicationStopper used by this StopStrategy.
void awaitTermination(const Data_Structure::ApplicationInstancePtr &application, int signalledPid)
Waits until the process that was signalled has terminated, then clears the application's pid.
ApplicationStopperPtr stopper
StopStrategy(ApplicationStopperPtr stopper)
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
bool WaitForExit(int pid, std::chrono::milliseconds timeout, std::chrono::milliseconds pollInterval)
Blocks until the process with the given pid has disappeared, at most for timeout.
std::shared_ptr< ApplicationStopper > ApplicationStopperPtr