LinuxStarter Class Reference

Starts applications in Linux. Shouldn't be used in any other OS, due to system calls being used. Applications started this way will still run, even when the main application dies. Can also be used to request the status of an application. More...

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

+ Inheritance diagram for LinuxStarter:

Public Member Functions

virtual std::string getStatus (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager) override
 Returns the status of an application. More...
 
virtual void startApplication (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override
 Starts an application. More...
 
virtual void startScenario (Data_Structure::ScenarioPtr scenario, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override
 

Additional Inherited Members

- Public Attributes inherited from ApplicationStarter
std::string commandLineParameters
 

Detailed Description

Starts applications in Linux. Shouldn't be used in any other OS, due to system calls being used. Applications started this way will still run, even when the main application dies. Can also be used to request the status of an application.

Definition at line 42 of file LinuxStarter.h.

Member Function Documentation

◆ getStatus()

std::string getStatus ( Data_Structure::ApplicationInstancePtr  application,
StatusManager  statusManager 
)
overridevirtual

Returns the status of an application.

Parameters
applicationapplication whose status is returned
Returns
status of the application

Implements ApplicationStarter.

Definition at line 240 of file LinuxStarter.cpp.

+ Here is the call graph for this function:

◆ startApplication()

void startApplication ( Data_Structure::ApplicationInstancePtr  application,
StatusManager  statusManager,
const std::string &  commandLineParameters = "",
bool  printOnly = false 
)
overridevirtual

Starts an application.

Forks, creates a daemon and starts the executable.

Parameters
applicationapplication to be started

Implements ApplicationStarter.

Definition at line 109 of file LinuxStarter.cpp.

+ Here is the call graph for this function:

◆ startScenario()

void startScenario ( Data_Structure::ScenarioPtr  scenario,
StatusManager  statusManager,
const std::string &  commandLineParameters = "",
bool  printOnly = false 
)
overridevirtual

Implements ApplicationStarter.

Definition at line 88 of file LinuxStarter.cpp.


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