wrench::ServiceMessagePayload

class ServiceMessagePayload

Configurable message payloads for a Service.

Subclassed by wrench::ComputeServiceMessagePayload, wrench::FileRegistryServiceMessagePayload, wrench::NetworkProximityServiceMessagePayload, wrench::StorageServiceMessagePayload

Public Static Functions

static WRENCH_MESSAGEPAYLOAD_TYPE addMessagePayload(std::string classname, std::string messagePayload)

add new message to payload map. DO NOT CALL THIS FUNCTION DIRECTLY, use SET_MESSAGEPAYLOAD_NAME and DECLARE_MESSAGEPAYLOAD_NAME

Parameters:
  • classname – The class to add the message too

  • messagePayload – the name of the message payload to add

Returns:

a wrench message payload type

static std::string translatePayloadType(WRENCH_MESSAGEPAYLOAD_TYPE messagePayload)

translate a message payload ID to a string key

Parameters:

messagePayload – the ID of the message payload

Returns:

a wrench message payload type, as a string

static WRENCH_MESSAGEPAYLOAD_TYPE translateString(std::string messagePayload)

translate a string key to a message payload id

Parameters:

messagePayload – the name of the message payload to get in classname::messagePayload form (Note: the classname must be the parent class that defines the property)

Returns:

a wrench message payload type

Public Static Attributes

static const std::string DAEMON_STOPPED_MESSAGE_PAYLOAD

The number of bytes in the control message sent by the daemon to confirm it has terminated.

static const std::string STOP_DAEMON_MESSAGE_PAYLOAD

The number of bytes in the control message sent to the daemon to terminate it.