diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-12-22 15:05:29 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-12-22 15:05:29 +0100 |
commit | 0dc558a604dc3677f4f39503f84936a49e32d1de (patch) | |
tree | d2d6e3132aefe028d0f5887fbe4191ec65140859 /src | |
parent | 3d8ac49fc34fb1ad1e9c7091a3d5c41b3c816fcf (diff) |
Add scheduler message
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java new file mode 100644 index 0000000..76d6f8c --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java @@ -0,0 +1,40 @@ +package pl.edu.mimuw.cloudatlas.agent.message; + +import java.util.TimerTask; + +public class TimerSchedulerMessage extends AgentMessage { + long delay; + long baseTime; + TimerTask task; + + public TimerSchedulerMessage(String requestId, AgentModule destinationModule, long timestamp, long delay, long baseTime, TimerTask task) { + super(requestId, destinationModule, timestamp); + 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 TimerTask getTask() { + return task; + } + + public void setTask(TimerTask task) { + this.task = task; + } +} |