diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-12-22 15:04:02 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-12-22 15:04:02 +0100 |
commit | 3d8ac49fc34fb1ad1e9c7091a3d5c41b3c816fcf (patch) | |
tree | c62bcecd53a329720faabe101797ad79d33634d0 /src/main/java/pl/edu/mimuw | |
parent | 0cff4e616cdf5f3ea4506e828c891baa4556b38c (diff) |
Add agent message class
Diffstat (limited to 'src/main/java/pl/edu/mimuw')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java | 49 |
1 files changed, 49 insertions, 0 deletions
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; + } +} |