11 #ifndef WRENCH_CLOUDSERVICEMESSAGE_H
12 #define WRENCH_CLOUDSERVICEMESSAGE_H
15 #include <wrench/services/compute/bare_metal/BareMetalComputeService.h>
17 #include "wrench/services/compute/ComputeServiceMessage.h"
156 std::shared_ptr<BareMetalComputeService>
cs,
163 std::shared_ptr<BareMetalComputeService>
cs;
267 #endif //WRENCH_CLOUDSERVICEMESSAGE_H
A message sent by a CloudComputeService in answer to a VM destroy request.
Definition: CloudComputeServiceMessage.h:250
std::string vm_name
The name of the VM to start.
Definition: CloudComputeServiceMessage.h:145
A message sent to a CloudComputeService to request a VM destruction.
Definition: CloudComputeServiceMessage.h:234
A message sent to a CloudComputeService to request a VM creation.
Definition: CloudComputeServiceMessage.h:60
CloudComputeServiceCreateVMAnswerMessage(bool success, std::string &vm_name, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:100
A message sent by a CloudComputeService in answer to a VM suspend request.
Definition: CloudComputeServiceMessage.h:187
A message sent by a CloudComputeService in answer to a VM creation request.
Definition: CloudComputeServiceMessage.h:88
bool success
Whether the VM start was successful or not.
Definition: CloudComputeServiceMessage.h:161
std::string name
The message name.
Definition: SimulationMessage.h:37
double ram_memory
The VM RAM memory_manager_service capacity (0 means "use all memory_manager_service available on the ...
Definition: CloudComputeServiceMessage.h:76
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
std::string vm_name
The VM name if success.
Definition: CloudComputeServiceMessage.h:96
std::string vm_name
The name of the new VM host.
Definition: CloudComputeServiceMessage.h:114
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:143
CloudComputeServiceShutdownVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:137
std::string desired_vm_name
The desired name for the VM ("" means "pick for me")
Definition: CloudComputeServiceMessage.h:78
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:259
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:112
std::map< std::string, std::string > property_list
A property list for the bare_metal that will run on the VM ({} means "use all defaults")
Definition: CloudComputeServiceMessage.h:80
CloudComputeServiceDestroyVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:284
A message sent to a CloudComputeService to request a VM start.
Definition: CloudComputeServiceMessage.h:134
std::string vm_name
The name of the VM host.
Definition: CloudComputeServiceMessage.h:212
std::string pm_name
The name of the physical host on which to start the VM (or "" if up to the service")
Definition: CloudComputeServiceMessage.h:147
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:210
A message sent to a CloudComputeService to request a VM resume.
Definition: CloudComputeServiceMessage.h:202
CloudComputeServiceSuspendVMRequestMessage(const std::string &answer_mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:192
std::shared_ptr< BareMetalComputeService > cs
The VM's compute service.
Definition: CloudComputeServiceMessage.h:163
A message sent by a CloudComputeService in answer to a VM start request.
Definition: CloudComputeServiceMessage.h:153
std::string answer_mailbox
The mailbox to which a reply should be sent.
Definition: CloudComputeServiceMessage.h:43
bool success
Whether the VM suspend was successful or not.
Definition: CloudComputeServiceMessage.h:194
bool success
Whether the VM shutdown was successful or not.
Definition: CloudComputeServiceMessage.h:126
CloudComputeServiceShutdownVMRequestMessage(const std::string &answer_mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:116
A message sent by a CloudComputeService in answer to a VM resume request.
Definition: CloudComputeServiceMessage.h:218
bool success
Whether the VM resume was successful or not.
Definition: CloudComputeServiceMessage.h:225
CloudComputeServiceStartVMAnswerMessage(bool success, std::shared_ptr< BareMetalComputeService > cs, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:176
CloudComputeServiceResumeVMRequestMessage(const std::string &answer_mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:227
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
A message sent to a CloudComputeService to request a VM suspend.
Definition: CloudComputeServiceMessage.h:171
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:72
A message sent to a CloudComputeService to request a VM shutdown.
Definition: CloudComputeServiceMessage.h:104
CloudComputeServiceGetExecutionHostsRequestMessage(const std::string &answer_mailbox, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:34
std::string vm_name
The name of the new VM host.
Definition: CloudComputeServiceMessage.h:181
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:179
CloudComputeServiceSuspendVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:213
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: CloudComputeServiceMessage.h:128
unsigned long num_cores
The number of cores the service can use (0 means "use as many as there are cores on the host")
Definition: CloudComputeServiceMessage.h:74
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:227
bool success
Whether the VM suspend was successful or not.
Definition: CloudComputeServiceMessage.h:257
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:165
Top-level class for messages received/sent by a CloudComputeService.
Definition: CloudComputeServiceMessage.h:30
CloudComputeServiceStartVMRequestMessage(const std::string &answer_mailbox, const std::string &vm_name, const std::string &pm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:152
CloudComputeServiceResumeVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:248
CloudComputeServiceDestroyVMRequestMessage(const std::string &answer_mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:263
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:196
std::vector< std::string > execution_hosts
The list of execution hosts.
Definition: CloudComputeServiceMessage.h:54
A message sent by a CloudComputeService in answer to a VM shutdown request.
Definition: CloudComputeServiceMessage.h:120
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:242
A message sent by a CloudComputeService in answer to a list of execution hosts request.
Definition: CloudComputeServiceMessage.h:49
std::string vm_name
The name of the VM host.
Definition: CloudComputeServiceMessage.h:244
std::map< std::string, double > messagepayload_list
A message payload list for the bare_metal that will run on the VM ({} means "use all defaults")
Definition: CloudComputeServiceMessage.h:82
CloudComputeServiceGetExecutionHostsAnswerMessage(std::vector< std::string > &execution_hosts, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:53
A message sent to a CloudComputeService to request the list of its execution hosts.
Definition: CloudComputeServiceMessage.h:38
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: CloudComputeServiceMessage.h:98
bool success
Whether the VM creation was successful or not.
Definition: CloudComputeServiceMessage.h:94
CloudComputeServiceMessage(const std::string &name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:22
CloudComputeServiceCreateVMRequestMessage(const std::string &answer_mailbox, unsigned long num_cores, double ram_memory, std::string desired_vm_name, std::map< std::string, std::string > property_list, std::map< std::string, double > messagepayload_list, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:72