m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu
diff options
context:
space:
mode:
authorMagdalena Grodzińska <mag.grodzinska@gmail.com>2019-12-22 14:21:52 +0100
committerMagdalena Grodzińska <mag.grodzinska@gmail.com>2019-12-23 19:33:32 +0100
commit9d24163dc71c345fb2197f91abb62478e1e9e3ee (patch)
treeb885aa5c71cb40be77493e212634a76383cd92c7 /src/main/java/pl/edu
parent45aad6c3b76c294ce217883b3b3add3ccc7abc14 (diff)
Add log messages
Diffstat (limited to 'src/main/java/pl/edu')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java3
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");
}
}