A message sent to a CloudComputeService to request a VM creation. More...
#include <CloudComputeServiceMessage.h>
Public Member Functions | |
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. More... | |
Public Attributes | |
std::string | answer_mailbox |
The mailbox to which the answer message should be sent. | |
std::string | desired_vm_name |
The desired name for the VM ("" means "pick for me") | |
std::map< std::string, double > | messagepayload_list |
A message payload list for the BareMetalComputeService that will run on the VM ({} means "use all defaults") | |
unsigned long | num_cores |
The number of cores the service can use (0 means "use as many as there are cores on the host") | |
std::map< std::string, std::string > | property_list |
A property list for the BareMetalComputeService that will run on the VM ({} means "use all defaults") | |
double | ram_memory |
The VM RAM memory capacity (0 means "use all memory available on the host", this can be lead to out of memory issue) | |
Additional Inherited Members |
Detailed Description
A message sent to a CloudComputeService to request a VM creation.
Constructor & Destructor Documentation
◆ CloudComputeServiceCreateVMRequestMessage()
wrench::CloudComputeServiceCreateVMRequestMessage::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.
- Parameters
-
answer_mailbox the mailbox to which to send the answer num_cores the number of cores the service can use (use ComputeService::ALL_CORES to use all cores available on the host) ram_memory the VM's RAM memory capacity (use ComputeService::ALL_RAM to use all RAM available on the host, this can be lead to an out of memory issue) desired_vm_name the desired VM name ("" means "pick a name for me") property_list a property list for the BareMetalComputeService that will run on the VM ({} means "use all defaults") messagepayload_list a message payload list for the BareMetalComputeService that will run on the VM ({} means "use all defaults") payload the message size in bytes
- Exceptions
-
std::invalid_argument
The documentation for this class was generated from the following files:
- CloudComputeServiceMessage.h
- CloudComputeServiceMessage.cpp