From 9d24163dc71c345fb2197f91abb62478e1e9e3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Grodzi=C5=84ska?= Date: Sun, 22 Dec 2019 14:21:52 +0100 Subject: Add log messages --- src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java | 3 +++ 1 file changed, 3 insertions(+) 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"); } } -- cgit v1.2.3