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

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

#include <CloudComputeServiceMessage.h>

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

Public Member Functions

 CloudComputeServiceShutdownVMRequestMessage (simgrid::s4u::Mailbox *answer_mailbox, const std::string &vm_name, bool send_failure_notifications, ComputeService::TerminationCause termination_cause, 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.
 
bool send_failure_notifications
 Whether to send failure notifications.
 
ComputeService::TerminationCause termination_cause
 Termination cause (in case failure notifications are sent)
 
std::string vm_name
 The name of the new VM host.
 
- 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 shutdown.

Constructor & Destructor Documentation

◆ CloudComputeServiceShutdownVMRequestMessage()

wrench::CloudComputeServiceShutdownVMRequestMessage::CloudComputeServiceShutdownVMRequestMessage ( simgrid::s4u::Mailbox *  answer_mailbox,
const std::string &  vm_name,
bool  send_failure_notifications,
ComputeService::TerminationCause  termination_cause,
double  payload 
)

Constructor.

Parameters
answer_mailboxthe mailbox to which to send the answer
vm_namethe name of the VM host
send_failure_notificationswhether to send job failure notifications
termination_causetermination cause (for failure notifications)
payloadthe message size in bytes
Exceptions
std::invalid_argument

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