wrench::CloudComputeServiceStartVMAnswerMessage Class Reference

A message sent by a CloudComputeService in answer to a VM start request. More...

#include <CloudComputeServiceMessage.h>

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

Public Member Functions

 CloudComputeServiceStartVMAnswerMessage (bool success, std::shared_ptr< BareMetalComputeService > cs, std::shared_ptr< FailureCause > failure_cause, 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::shared_ptr< BareMetalComputeServicecs
 The VM's compute service.
 
std::shared_ptr< FailureCausefailure_cause
 The failure cause (or nullptr if success)
 
bool success
 Whether the VM start was successful or not.
 
- 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::CloudComputeServiceMessage
 CloudComputeServiceMessage (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 by a CloudComputeService in answer to a VM start request.

Constructor & Destructor Documentation

◆ CloudComputeServiceStartVMAnswerMessage()

wrench::CloudComputeServiceStartVMAnswerMessage::CloudComputeServiceStartVMAnswerMessage ( bool  success,
std::shared_ptr< BareMetalComputeService cs,
std::shared_ptr< FailureCause failure_cause,
double  payload 
)

Constructor.

Parameters
successwhether the VM start succeeded
csthe bare_metal exposed by the started VM (or nullptr if not success)
failure_causethe cause of the failure (or nullptr if success)
payloadthe message size in bytes

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