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

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

#include <ServiceMessage.h>

Inheritance diagram for wrench::ServiceStopDaemonMessage:
wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 ServiceStopDaemonMessage (simgrid::s4u::Mailbox *ack_mailbox, 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 * 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.
 
- Public Attributes inherited from wrench::SimulationMessage
double payload
 The message name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (double payload)
 Constructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ServiceStopDaemonMessage()

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

Constructor.

Parameters
ack_mailboxmailbox to which the DaemonStoppedMessage ack will be sent. No ack will be sent if ack_mailbox=""
send_failure_notificationswhether the service should send failure notifications before terminating
termination_causethe termination cause (if failure notifications are sent)
payloadmessage size in bytes
Exceptions
std::invalid_arguments

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