wrench::CloudComputeServiceShutdownVMRequestMessage

class CloudComputeServiceShutdownVMRequestMessage : public wrench::CloudComputeServiceMessage

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

Public Functions

CloudComputeServiceShutdownVMRequestMessage(S4U_CommPort *answer_commport, const std::string &vm_name, bool send_failure_notifications, ComputeService::TerminationCause termination_cause, double payload)

Constructor.

Parameters:
  • answer_commport – the commport 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

S4U_CommPort *answer_commport

The commport_name 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.