60 std::map<Data_Structure::ScenarioPtr, StopStrategyPtr> stopStrategy;
61 std::map<Data_Structure::ScenarioPtr, ApplicationStarterPtr> starter;
86 bool printOnly =
false,
87 const std::string& commandLineParameters =
"");
103 bool printOnly =
false);
119 bool printOnly =
false,
120 const std::string& commandLineParameters =
"");
135 bool printOnly =
false);
StopStrategyPtr getStopStrategy(Data_Structure::ScenarioPtr scenario)
std::future< void > startScenario(Data_Structure::ScenarioPtr scenario, bool printOnly=false, const std::string &commandLineParameters="")
Starts a scenario.
void setDefaultStarter(ApplicationStarterPtr appStarter)
Sets the appStarter this Executor uses to start applications and request statuses.
void loadAndSetCachedProperties(Data_Structure::ApplicationPtr application, std::string path, bool reload=false, bool set=true)
Generates an XML file of the given application and saves it in the specified path.
std::future< void > restartApplication(Data_Structure::ApplicationInstancePtr application, bool printOnly=false)
Restarts an application.
std::future< void > stopScenario(Data_Structure::ScenarioPtr scenario)
Stops a scenario.
std::string getApplicationStatus(Data_Structure::ApplicationInstancePtr application)
Returns the status of an application.
std::future< void > restartScenario(Data_Structure::ScenarioPtr scenario, bool printOnly=false)
Restarts a scenario.
std::future< void > startApplication(Data_Structure::ApplicationInstancePtr application, bool printOnly=false, const std::string &commandLineParameters="")
Starts an application.
Executor(StopStrategyPtr strategy, ApplicationStarterPtr starter)
Constructor that sets StopStrategy and ApplicationStarter.
std::future< void > stopApplication(Data_Structure::ApplicationInstancePtr application)
Stops an application.
void setDefaultStopStrategy(StopStrategyPtr strategy)
Sets the strategy this Executor uses to stop applications.
StopStrategyPtr getDefaultStopStrategy()
void setStarter(ApplicationStarterPtr appStarter, Data_Structure::ScenarioPtr scenario)
ApplicationStarterPtr getStarter(Data_Structure::ScenarioPtr scenario)
void setStopStrategy(StopStrategyPtr strategy, Data_Structure::ScenarioPtr scenario)
Interface for classes that define how an application get stopped.
std::shared_ptr< Scenario > ScenarioPtr
std::shared_ptr< Application > ApplicationPtr
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< Executor > ExecutorPtr
std::shared_ptr< StopStrategy > StopStrategyPtr
std::shared_ptr< ApplicationStarter > ApplicationStarterPtr