ByNameStopperLinux Class Reference

Stops or kills applications on Linux based on their name. This ApplicationStopper stops (killall -15) or kills (killall -9) application processes on Linux. It should not be used on other operating systems, due to the usage of system calls. More...

#include <ArmarXCore/util/ScenarioManagerCommon/executor/ByNameStopperLinux.h>

+ Inheritance diagram for ByNameStopperLinux:

Public Member Functions

void kill (Data_Structure::ApplicationInstancePtr application) override
 Stops an application based on its name. More...
 
void stop (Data_Structure::ApplicationInstancePtr application) override
 Stops an application based on its name. More...
 

Detailed Description

Stops or kills applications on Linux based on their name. This ApplicationStopper stops (killall -15) or kills (killall -9) application processes on Linux. It should not be used on other operating systems, due to the usage of system calls.

Definition at line 40 of file ByNameStopperLinux.h.

Member Function Documentation

◆ kill()

void kill ( Data_Structure::ApplicationInstancePtr  application)
overridevirtual

Stops an application based on its name.

Uses killall -9.

Parameters
applicationapplication to be killed

Implements ApplicationStopper.

Definition at line 36 of file ByNameStopperLinux.cpp.

◆ stop()

void stop ( Data_Structure::ApplicationInstancePtr  application)
overridevirtual

Stops an application based on its name.

Uses killall -15.

Parameters
applicationapplication to be stopped

Implements ApplicationStopper.

Definition at line 31 of file ByNameStopperLinux.cpp.


The documentation for this class was generated from the following files: