Service.h
A service that can be added to the simulation and that can be used by a WMS when executing a workflow...
Definition: Service.h:26
DOWN state: the service has been shutdown and/or has terminated.
Definition: Service.h:39
UP state: the service has been started and is still running.
Definition: Service.h:37
std::string getHostname()
Get the name of the host on which the service is / will be running.
Definition: Service.cpp:245
std::string getPropertyValueAsString(std::string)
Get a property of the Service as a string.
Definition: Service.cpp:78
virtual void stop()
Synchronously stop the service (does nothing if the service is already stopped)
Definition: Service.cpp:200
void setNetworkTimeoutValue(double value)
Sets the service's network timeout value.
Definition: Service.cpp:324
double getPropertyValueAsDouble(std::string)
Get a property of the Service as a double.
Definition: Service.cpp:109
bool isUp()
Returns true if the service is UP, false otherwise.
Definition: Service.cpp:253
bool getPropertyValueAsBoolean(std::string)
Get a property of the Service as a boolean.
Definition: Service.cpp:157
double getNetworkTimeoutValue()
Returns the service's network timeout value.
Definition: Service.cpp:315
void start(std::shared_ptr< Service > this_service, bool daemonize, bool auto_restart)
Start the service.
Definition: Service.cpp:184
Definition: TerminalOutput.cpp:15