LinuxStarter Class Reference

Starts applications in Linux. 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.
 
 LinuxStarter ()
 
virtual void startApplication (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override
 Starts an application.
 

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 45 of file LinuxStarter.h.

Constructor & Destructor Documentation

◆ LinuxStarter()

Definition at line 121 of file LinuxStarter.cpp.

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 303 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 157 of file LinuxStarter.cpp.

+ Here is the call graph for this function:

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