diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-12-22 14:21:52 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2019-12-23 19:33:32 +0100 |
commit | 9d24163dc71c345fb2197f91abb62478e1e9e3ee (patch) | |
tree | b885aa5c71cb40be77493e212634a76383cd92c7 | |
parent | 45aad6c3b76c294ce217883b3b3add3ccc7abc14 (diff) |
Add log messages
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java index 6eef931..6408a52 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java @@ -17,13 +17,16 @@ public class TimerScheduler { TimerScheduler() { this.timer = new Timer(); + System.out.println("TimerScheduler instance initialized"); } public void handle(TimerTask task, long delay, long period) { this.timer.scheduleAtFixedRate(task, delay, period); + System.out.println("Task with delay " + delay + " and period " + period + " scheduled"); } public void handle(TimerTask task, long delay) { this.timer.schedule(task, delay); + System.out.println("Task with delay " + delay + " scheduled"); } } |