wrench::CloudServiceCreateVMRequestMessage Class Reference

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

#include <CloudServiceMessage.h>

Inheritance diagram for wrench::CloudServiceCreateVMRequestMessage:
wrench::CloudServiceMessage wrench::ComputeServiceMessage wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 CloudServiceCreateVMRequestMessage (const std::string &answer_mailbox, const std::string &pm_hostname, const std::string &vm_hostname, unsigned long num_cores, double ram_memory, std::map< std::string, std::string > &property_list, std::map< std::string, std::string > &messagepayload_list, double payload)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationMessage
 SimulationMessage (std::string name, double payload)
 Constructor. More...
 
virtual std::string getName ()
 Retrieve the message name. More...
 

Public Attributes

std::string answer_mailbox
 The mailbox to which the answer message should be sent.
 
std::map< std::string, std::string > messagepayload_list
 A message payload list ({} 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 pm_hostname
 The name of the physical machine host.
 
std::map< std::string, std::string > property_list
 A property list ({} 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)
 
std::string vm_hostname
 The name of the new VM host.
 
- Public Attributes inherited from wrench::SimulationMessage
std::string name
 The message name.
 
double payload
 The message size in bytes.
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::CloudServiceMessage
 CloudServiceMessage (const std::string &name, double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ComputeServiceMessage
 ComputeServiceMessage (std::string name, double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (std::string name, double payload)
 Constructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CloudServiceCreateVMRequestMessage()

wrench::CloudServiceCreateVMRequestMessage::CloudServiceCreateVMRequestMessage ( const std::string &  answer_mailbox,
const std::string &  pm_hostname,
const std::string &  vm_hostname,
unsigned long  num_cores,
double  ram_memory,
std::map< std::string, std::string > &  property_list,
std::map< std::string, std::string > &  messagepayload_list,
double  payload 
)

Constructor.

Parameters
answer_mailboxthe mailbox to which to send the answer
pm_hostnamethe name of the physical machine host
vm_hostnamethe name of the new VM host
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 capacity (use ComputeService::ALL_RAM to use all RAM available on the host, this can be lead to an out of memory issue)
property_lista property list ({} means "use all defaults")
messagepayload_lista message payload list ({} means "use all defaults")
payloadthe message size in bytes
Exceptions
std::invalid_argument

The documentation for this class was generated from the following files:
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/compute/cloud/CloudServiceMessage.h
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/compute/cloud/CloudServiceMessage.cpp