m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/message/AgentMessage.java49
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;
+ }
+}