CloudComputeServiceMessage.h
40 CloudComputeServiceGetExecutionHostsRequestMessage(const std::string &answer_mailbox, double payload);
51 CloudComputeServiceGetExecutionHostsAnswerMessage(std::vector<std::string> &execution_hosts, double payload);
122 CloudComputeServiceShutdownVMAnswerMessage(bool success, std::shared_ptr<FailureCause> failure_cause,
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
A message sent by a CloudComputeService in answer to a VM creation request.
Definition: CloudComputeServiceMessage.h:88
std::string vm_name
The VM name if success.
Definition: CloudComputeServiceMessage.h:96
double ram_memory
The VM RAM memory capacity (0 means "use all memory available on the host", this can be lead to out o...
Definition: CloudComputeServiceMessage.h:76
std::string vm_name
The name of the new VM host.
Definition: CloudComputeServiceMessage.h:114
Top-level class for messages received/sent by a CloudComputeService.
Definition: CloudComputeServiceMessage.h:30
bool success
Whether the VM shutdown was successful or not.
Definition: CloudComputeServiceMessage.h:126
A message sent by a CloudComputeService in answer to a VM shutdown request.
Definition: CloudComputeServiceMessage.h:120
std::vector< std::string > execution_hosts
The list of execution hosts.
Definition: CloudComputeServiceMessage.h:54
A message sent to a CloudComputeService to request a VM creation.
Definition: CloudComputeServiceMessage.h:60
A message sent to a CloudComputeService to request a VM start.
Definition: CloudComputeServiceMessage.h:134
A message sent to a CloudComputeService to request a VM shutdown.
Definition: CloudComputeServiceMessage.h:104
std::string vm_name
The name of the VM host.
Definition: CloudComputeServiceMessage.h:212
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
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
bool success
Whether the VM creation was successful or not.
Definition: CloudComputeServiceMessage.h:94
A message sent to a CloudComputeService to request a VM resume.
Definition: CloudComputeServiceMessage.h:202
A message sent by a CloudComputeService in answer to a list of execution hosts request.
Definition: CloudComputeServiceMessage.h:49
std::shared_ptr< BareMetalComputeService > cs
The VM's compute service.
Definition: CloudComputeServiceMessage.h:163
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::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:227
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 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
std::string vm_name
The name of the VM host.
Definition: CloudComputeServiceMessage.h:244
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:259
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:165
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:143
std::map< std::string, double > messagepayload_list
A message payload list for the BareMetalComputeService that will run on the VM ({} means "use all def...
Definition: CloudComputeServiceMessage.h:82
A message sent by a CloudComputeService in answer to a VM resume request.
Definition: CloudComputeServiceMessage.h:218
bool success
Whether the VM suspend was successful or not.
Definition: CloudComputeServiceMessage.h:194
std::string vm_name
The name of the new VM host.
Definition: CloudComputeServiceMessage.h:181
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
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:179
std::map< std::string, std::string > property_list
A property list for the BareMetalComputeService that will run on the VM ({} means "use all defaults")...
Definition: CloudComputeServiceMessage.h:80
A message sent by a CloudComputeService in answer to a VM destroy request.
Definition: CloudComputeServiceMessage.h:250
std::string desired_vm_name
The desired name for the VM ("" means "pick for me")
Definition: CloudComputeServiceMessage.h:78
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:72
bool success
Whether the VM resume was successful or not.
Definition: CloudComputeServiceMessage.h:225
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:242
std::string vm_name
The name of the VM to start.
Definition: CloudComputeServiceMessage.h:145
CloudComputeServiceMessage(const std::string &name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:22
A message sent to a CloudComputeService to request a VM destruction.
Definition: CloudComputeServiceMessage.h:234
bool success
Whether the VM suspend was successful or not.
Definition: CloudComputeServiceMessage.h:257
A message sent to a CloudComputeService to request a VM suspend.
Definition: CloudComputeServiceMessage.h:171
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: CloudComputeServiceMessage.h:128
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:196
Definition: Alarm.cpp:19
bool success
Whether the VM start was successful or not.
Definition: CloudComputeServiceMessage.h:161
A message sent by a CloudComputeService in answer to a VM suspend request.
Definition: CloudComputeServiceMessage.h:187
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:112