Go to the documentation of this file.
67 std::string instanceName;
68 std::filesystem::path configPath;
71 std::string configDomain;
74 bool statusWriteBlock;
87 std::string instanceName, std::string configPath,
89 std::string node,
bool enabled);
99 std::string node,
bool enabled);
146 bool setStatus(
const std::string& status);
208 void load(
bool firstLoad =
false);
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< Scenario > ScenarioPtr
void modifyProperty(std::string name, std::string value)
Changes the value of the specified property.
std::shared_ptr< std::vector< ApplicationInstancePtr > > ApplicationInstanceVectorPtr
Class containing data about the instance of an application. Provides methods to get and set the data....
std::string getNodeName() const
static const std::string Stopped
std::string getEffectiveNodeName() const
bool setStatus(const std::string &status)
Sets the status of this ApplicationInstance.
static const std::string Missing
static const std::string Running
void setConfigDomain(const std::string &value)
ScenarioPtr getScenario()
Class containing data about an application Provides methods to get and set the date contained in the ...
void setInstanceName(std::string newName)
Sets the name of this ApplicationInstance.
std::string getConfigDomain() const
std::string getStatus()
Returns the status.
std::shared_ptr< Value > value()
ApplicationInstance(std::string executableName, std::string executablePath, std::string instanceName, std::string configPath, std::string packageName, ScenarioPtr scenarioName, std::string node, bool enabled)
Constructor that sets the base data of this ApplicationInstance.
void resetConfigPath()
resetConfigPath.
static const std::string Waiting
std::string getConfigPath()
void setPid(int pid)
Sets the pid of this ApplicationInstance.
static const std::string Inactive
void copyFrom(ApplicationInstance &other)
copyFrom Copy the other instance configuration to this one.
static const std::string Mixed
static const std::string Unknown
void setStatusWriteBlock(bool blocked)
void addProperty(std::string name, std::string value)
Adds a new property with the specified name and value to this ApplicationInstance.
void save()
Saves the IceProperties to the configPath.
std::string getInstanceName()
void setEnabled(bool enabled)
Interface for classes that handle the starting of applications Classes implementing this interface al...
void load(bool firstLoad=false)
Loades the IceProperties from the configPath Firstload determins if properties that equal their defau...
bool getStatusWriteBlock()
void makeLocal()
Make a local copy of this instance if it is linked and nothing otherwise.
void linkFrom(ApplicationInstance &other)
linkFrom Link this instance configuration from the other instance.
std::weak_ptr< ApplicationInstance > ApplicationInstanceWPtr
void setNodeName(std::string nodeName)
void setConfigPath(std::string configPath)
Sets the config path of this ApplicationInstance.