11 #ifndef WRENCH_SERVICE_H 12 #define WRENCH_SERVICE_H 18 #include <wrench/simgrid_S4U_util/S4U_Daemon.h> 42 void start(std::shared_ptr<Service> this_service,
bool daemonize,
bool auto_restart);
46 std::string getHostname();
50 std::string getPropertyValueAsString(std::string);
52 double getPropertyValueAsDouble(std::string);
54 bool getPropertyValueAsBoolean(std::string);
56 double getNetworkTimeoutValue();
58 void setNetworkTimeoutValue(
double value);
68 std::string getMessagePayloadValueAsString(std::string);
70 double getMessagePayloadValueAsDouble(std::string);
72 void setStateToDown();
86 Service(std::string hostname, std::string process_name_prefix, std::string mailbox_name_prefix);
89 void setProperty(std::string, std::string);
91 void setProperties(std::map<std::string, std::string> default_property_values,
92 std::map<std::string, std::string> overriden_property_values);
95 void setMessagePayload(std::string, std::string);
97 void setMessagePayloads(std::map<std::string, std::string> default_messagepayload_values,
98 std::map<std::string, std::string> overriden_messagepayload_values);
101 void serviceSanityCheck();
104 std::map<std::string, std::string> property_list;
107 std::map<std::string, std::string> messagepayload_list;
119 double network_timeout = 30.0;
122 bool shutting_down =
false;
132 #endif //WRENCH_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
A class that provides basic simulation methods.
Definition: Simulation.h:34
Definition: TerminalOutput.cpp:15