wrench::CloudComputeServiceCreateVMRequestMessage
-
class CloudComputeServiceCreateVMRequestMessage : public wrench::CloudComputeServiceMessage
A message sent to a CloudComputeService to request a VM creation.
Public Functions
-
CloudComputeServiceCreateVMRequestMessage(S4U_CommPort *answer_commport, unsigned long num_cores, double ram_memory, const std::string &physical_host, WRENCH_PROPERTY_COLLECTION_TYPE property_list, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list, double payload)
Constructor.
- Parameters:
answer_commport – the commport 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_manager_service capacity (use ComputeService::ALL_RAM to use all RAM available on the host, this can be lead to an out of memory_manager_service issue)
physical_host – the physical execution host (”” 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
- Throws:
std::invalid_argument –
Public Members
-
S4U_CommPort *answer_commport
The commport_name to which the answer message should be sent.
-
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list
A message payload list for the bare_metal_standard_jobs 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::string physical_host
The physical host on which the VM should be created (”” means “the service picks”)
-
WRENCH_PROPERTY_COLLECTION_TYPE property_list
A property list for the bare_metal_standard_jobs that will run on the VM ({} means “use all defaults”)
-
double ram_memory
The VM RAM memory_manager_service capacity (0 means “use all memory_manager_service available on the host”, this can be lead to out of memory_manager_service issue)
-
CloudComputeServiceCreateVMRequestMessage(S4U_CommPort *answer_commport, unsigned long num_cores, double ram_memory, const std::string &physical_host, WRENCH_PROPERTY_COLLECTION_TYPE property_list, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list, double payload)