From 3d8ac49fc34fb1ad1e9c7091a3d5c41b3c816fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Grodzi=C5=84ska?= Date: Sun, 22 Dec 2019 15:04:02 +0100 Subject: Add agent message class --- .../cloudatlas/agent/message/AgentMessage.java | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java (limited to 'src/main') diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java new file mode 100644 index 0000000..8afe5be --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java @@ -0,0 +1,49 @@ +package pl.edu.mimuw.cloudatlas.agent.message; + +public class AgentMessage { + + public enum AgentModule { + TIMER_SCHEDULER, + TIMER_GTP, + RMI, + UDP, + GOSSIP_IN, + GOSSIP_OUT, + STATE, + QUERY + } + + private String requestId; + private AgentModule destinationModule; + private long timestamp; + + public AgentMessage(String requestId, AgentModule destinationModule, long timestamp) { + this.requestId = requestId; + this.destinationModule = destinationModule; + this.timestamp = timestamp; + } + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public AgentModule getDestinationModule() { + return destinationModule; + } + + public void setDestinationModule(AgentModule destinationModule) { + this.destinationModule = destinationModule; + } + + public long getTimestamp() { + return timestamp; + } + + public void setTimestamp(long timestamp) { + this.timestamp = timestamp; + } +} -- cgit v1.2.3