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 void deployApplication (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override
 
virtual void deployScenario (Data_Structure::ScenarioPtr scenario, StatusManager statusManager, const std::string &commandLineParameters="", bool printOnly=false) override
 
virtual std::string getStatus (Data_Structure::ApplicationInstancePtr application, StatusManager statusManager) override
 Returns the status of an application. More...
 
virtual bool isApplicationDeployed (Data_Structure::ApplicationInstancePtr application) override
 
virtual bool isScenarioDeployed (Data_Structure::ScenarioPtr scenario) override
 
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

◆ deployApplication()

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

Implements ApplicationStarter.

Definition at line 88 of file LinuxStarter.cpp.

◆ deployScenario()

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

Implements ApplicationStarter.

Definition at line 93 of file LinuxStarter.cpp.

◆ 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 251 of file LinuxStarter.cpp.

+ Here is the call graph for this function:

◆ isApplicationDeployed()

bool isApplicationDeployed ( Data_Structure::ApplicationInstancePtr  application)
overridevirtual

Implements ApplicationStarter.

Definition at line 399 of file LinuxStarter.cpp.

◆ isScenarioDeployed()

bool isScenarioDeployed ( Data_Structure::ScenarioPtr  scenario)
overridevirtual

Implements ApplicationStarter.

Definition at line 404 of file LinuxStarter.cpp.

◆ 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 120 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 99 of file LinuxStarter.cpp.


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