wrench::ServiceStopDaemonMessage

class ServiceStopDaemonMessage : public wrench::ServiceMessage

A message sent to a Service to request for it to terminate.

Public Functions

ServiceStopDaemonMessage(simgrid::s4u::Mailbox *ack_mailbox, bool send_failure_notifications, ComputeService::TerminationCause termination_cause, double payload)

Constructor.

Parameters
  • ack_mailbox – mailbox to which the DaemonStoppedMessage ack will be sent. No ack will be sent if ack_mailbox=””

  • send_failure_notifications – whether the service should send failure notifications before terminating

  • termination_cause – the termination cause (if failure notifications are sent)

  • payload – message size in bytes

Throws

std::invalid_arguments

Public Members

simgrid::s4u::Mailbox *ack_mailbox

the mailbox to which the “I stopped” ack should be sent

bool send_failure_notifications

whether the service should send failure notifications before terminating

ComputeService::TerminationCause termination_cause

The termination cause for the failure notifications, if any.