65 public std::enable_shared_from_this<ApplicationInstance>
69 std::string instanceName;
70 std::filesystem::path configPath;
73 std::string configDomain;
76 bool statusWriteBlock;
89 std::string executablePath,
90 std::string instanceName,
91 std::string configPath,
92 std::string packageName,
104 std::string instanceName,
105 std::string configPath,
155 bool setStatus(
const std::string& status);
186 void addProperty(std::string name, std::string value);
217 void load(
bool firstLoad =
false);
Class containing data about the instance of an application.
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 setInstanceName(std::string newName)
Sets the name of this ApplicationInstance.
std::string getInstanceName()
void setEnabled(bool enabled)
void setPid(int pid)
Sets the pid of this ApplicationInstance.
void resetConfigPath()
resetConfigPath.
void addProperty(std::string name, std::string value)
Adds a new property with the specified name and value to this ApplicationInstance.
void setConfigPath(std::string configPath)
Sets the config path of this ApplicationInstance.
std::string getConfigDomain() const
std::string getConfigPath()
std::string getEffectiveNodeName() const
ScenarioPtr getScenario()
void modifyProperty(std::string name, std::string value)
Changes the value of the specified property.
void setConfigDomain(const std::string &value)
std::string getStatus()
Returns the status.
void makeLocal()
Make a local copy of this instance if it is linked and nothing otherwise.
void save()
Saves the IceProperties to the configPath.
bool getStatusWriteBlock()
void copyFrom(ApplicationInstance &other)
copyFrom Copy the other instance configuration to this one.
void linkFrom(ApplicationInstance &other)
linkFrom Link this instance configuration from the other instance.
void load(bool firstLoad=false)
Loades the IceProperties from the configPath Firstload determins if properties that equal their defau...
void setNodeName(std::string nodeName)
bool setStatus(const std::string &status)
Sets the status of this ApplicationInstance.
std::string getNodeName() const
void setStatusWriteBlock(bool blocked)
Application(std::string name, std::string executablePath, std::string packageName)
Constructor that sets the name and the path to the executable of the application.
std::shared_ptr< Scenario > ScenarioPtr
std::weak_ptr< ApplicationInstance > ApplicationInstanceWPtr
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< std::vector< ApplicationInstancePtr > > ApplicationInstanceVectorPtr
static const std::string Stopped
static const std::string Mixed
static const std::string Missing
static const std::string Unknown
static const std::string Inactive
static const std::string Waiting
static const std::string Running