WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
services
ServiceMessagePayload.h
1
11
#ifndef WRENCH_SERVICEMESSAGEPAYLOAD_H
12
#define WRENCH_SERVICEMESSAGEPAYLOAD_H
13
14
#include <string>
15
namespace
wrench
{
16
typedef
int
WRENCH_MESSAGEPAYLOAD_TYPE;
17
extern
WRENCH_MESSAGEPAYLOAD_TYPE WRENCH_MESSAGEPAYLOAD_COUNT;
18
19
}
20
#define DECLARE_MESSAGEPAYLOAD_NAME(name) static const WRENCH_MESSAGEPAYLOAD_TYPE name
21
22
23
#define SET_MESSAGEPAYLOAD_NAME(classname, name) const WRENCH_MESSAGEPAYLOAD_TYPE classname::name=++WRENCH_MESSAGEPAYLOAD_COUNT
24
//#name
25
//++WRENCH_MESSAGEPAYLOAD_COUNT
26
namespace
wrench
{
27
31
class
ServiceMessagePayload
{
32
33
public
:
35
DECLARE_MESSAGEPAYLOAD_NAME(
STOP_DAEMON_MESSAGE_PAYLOAD
);
37
DECLARE_MESSAGEPAYLOAD_NAME(
DAEMON_STOPPED_MESSAGE_PAYLOAD
);
38
39
};
40
41
};
42
43
44
#endif //WRENCH_SERVICEMESSAGEPAYLOAD_H
wrench::ServiceMessagePayload::DAEMON_STOPPED_MESSAGE_PAYLOAD
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.
Definition:
ServiceMessagePayload.h:37
wrench
Definition:
Action.cpp:28
wrench::ServiceMessagePayload::STOP_DAEMON_MESSAGE_PAYLOAD
static const std::string STOP_DAEMON_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to terminate it.
Definition:
ServiceMessagePayload.h:35
wrench::ServiceMessagePayload
Configurable message payloads for a Service.
Definition:
ServiceMessagePayload.h:31