WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | Public Attributes | List of all members
wrench::CloudComputeServiceCreateVMRequestMessage Class Reference

A message sent to a CloudComputeService to request a VM creation. More...

#include <CloudComputeServiceMessage.h>

Inheritance diagram for wrench::CloudComputeServiceCreateVMRequestMessage:
wrench::CloudComputeServiceMessage wrench::ComputeServiceMessage wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 CloudComputeServiceCreateVMRequestMessage (simgrid::s4u::Mailbox *answer_mailbox, unsigned long num_cores, double ram_memory, std::string desired_vm_name, WRENCH_PROPERTY_COLLECTION_TYPE property_list, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list, double payload)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationMessage
 SimulationMessage (double payload)
 Constructor. More...
 
virtual std::string getName ()
 Retrieve the message name. More...
 

Public Attributes

simgrid::s4u::Mailbox * 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")
 
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")
 
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)
 
- Public Attributes inherited from wrench::SimulationMessage
double payload
 The message name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::CloudComputeServiceMessage
 CloudComputeServiceMessage (double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ComputeServiceMessage
 ComputeServiceMessage (double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (double payload)
 Constructor. More...
 

Detailed Description

A message sent to a CloudComputeService to request a VM creation.

Constructor & Destructor Documentation

◆ CloudComputeServiceCreateVMRequestMessage()

wrench::CloudComputeServiceCreateVMRequestMessage::CloudComputeServiceCreateVMRequestMessage ( simgrid::s4u::Mailbox *  answer_mailbox,
unsigned long  num_cores,
double  ram_memory,
std::string  desired_vm_name,
WRENCH_PROPERTY_COLLECTION_TYPE  property_list,
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE  messagepayload_list,
double  payload 
)

Constructor.

Parameters
answer_mailboxthe mailbox to which to send the answer
num_coresthe number of cores the service can use (use ComputeService::ALL_CORES to use all cores available on the host)
ram_memorythe 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)
desired_vm_namethe desired VM name ("" means "pick a name for me")
property_lista property list for the BareMetalComputeService that will run on the VM ({} means "use all defaults")
messagepayload_lista message payload list for the BareMetalComputeService that will run on the VM ({} means "use all defaults")
payloadthe message size in bytes
Exceptions
std::invalid_argument

The documentation for this class was generated from the following files: