m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java
diff options
context:
space:
mode:
authorMagdalena GrodziƄska <mag.grodzinska@gmail.com>2019-12-25 12:58:08 +0100
committerGitHub <noreply@github.com>2019-12-25 12:58:08 +0100
commit08bd4342ae7ac18b21843a1c61c0023455d94d65 (patch)
treea401de66ab5ed9d5fc2d0b88ce447db7ff1dc457 /src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java
parent0949c9d56c595c0e253e6a35604fb2b9af46f82a (diff)
parent44b899400150c0183fede3b530ab9aa850fa4fa6 (diff)
Merge pull request #69 from m-chrzan/timer_scheduler
Timer scheduler
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java
new file mode 100644
index 0000000..333b381
--- /dev/null
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/TimerSchedulerMessage.java
@@ -0,0 +1,57 @@
+package pl.edu.mimuw.cloudatlas.agent.messages;
+
+import pl.edu.mimuw.cloudatlas.agent.modules.TimerScheduledTask;
+
+public class TimerSchedulerMessage extends AgentMessage {
+ private String requestId;
+ private long delay;
+ private long baseTime;
+ private TimerScheduledTask task;
+
+ public TimerSchedulerMessage(String messageId,
+ AgentModule destinationModule,
+ long timestamp,
+ String requestId,
+ long delay,
+ long baseTime,
+ TimerScheduledTask task) {
+ super(messageId, destinationModule, timestamp);
+ this.requestId = requestId;
+ this.delay = delay;
+ this.baseTime = baseTime;
+ this.task = task;
+ }
+
+ public long getDelay() {
+ return delay;
+ }
+
+ public void setDelay(long delay) {
+ this.delay = delay;
+ }
+
+ public long getBaseTime() {
+ return baseTime;
+ }
+
+ public void setBaseTime(long baseTime) {
+ this.baseTime = baseTime;
+ }
+
+ public TimerScheduledTask getTask() {
+ return task;
+ }
+
+ public void setTask(TimerScheduledTask task) {
+ this.task = task;
+ }
+
+ public String getRequestId() { return requestId; }
+
+ public void setRequestId(String requestId) { this.requestId = requestId; }
+
+ @Override
+ public AgentModule getCorrectMessageType() {
+ return AgentModule.TIMER_SCHEDULER;
+ }
+}