Go to the documentation of this file.
67 std::string instanceName;
68 std::string configPath;
71 std::string configDomain;
74 bool statusWriteBlock;
87 ApplicationInstance(std::string executableName, std::string executablePath, std::string instanceName, std::string configPath, std::string packageName,
ScenarioPtr scenarioName, std::string node,
bool enabled,
bool iceAutoRestart);
142 bool setStatus(
const std::string& status);
190 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.
void setIceAutoRestart(bool enabled)
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()
ApplicationInstance(std::string executableName, std::string executablePath, std::string instanceName, std::string configPath, std::string packageName, ScenarioPtr scenarioName, std::string node, bool enabled, bool iceAutoRestart)
Constructor that sets the base data of this ApplicationInstance.
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()
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
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.
std::weak_ptr< ApplicationInstance > ApplicationInstanceWPtr
void setNodeName(std::string nodeName)
void setConfigPath(std::string configPath)
Sets the config path of this ApplicationInstance.