wrench::CloudComputeServiceShutdownVMRequestMessage

class CloudComputeServiceShutdownVMRequestMessage : public wrench::CloudComputeServiceMessage

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

Public Functions

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

Constructor.

Parameters:
  • answer_mailbox – the mailbox to which to send the answer

  • vm_name – the name of the VM host

  • send_failure_notifications – whether to send job failure notifications

  • termination_cause – termination cause (for failure notifications)

  • payload – the message size in bytes

Throws:

std::invalid_argument

Public Members

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.