It seems like there is a bug in transferring the closed intervals to the server when WD is shut down. Any intervals that are still open are closed before shutting down WD and the remaining intervals are transferred to the server. However, not all of these intervals are actually tranferred.
For instance, see the following log:
Jan 13, 2016 2:52:17 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Starting up WatchDogLogger...
Jan 13, 2016 2:52:17 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Starting WatchDog ...
Jan 13, 2016 2:52:18 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Created interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.IDEOpenInterval@87060c0 IDE_OPEN
Jan 13, 2016 2:52:18 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Created interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.UserActiveInterval@42eaa429 USER_ACTIVE
Jan 13, 2016 2:52:18 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Created interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.PerspectiveInterval@669bb57 PERSPECTIVE
Jan 13, 2016 2:52:18 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Created interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.IDEActiveInterval@60ccf498 IDE_ACTIVE
Jan 13, 2016 2:52:29 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Created interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.DebugInterval@359d0007 DEBUG
Jan 13, 2016 2:52:30 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Created interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.ReadingInterval@137b9be1 READING
Jan 13, 2016 2:52:32 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: closed interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.UserActiveInterval@42eaa429 USER_ACTIVE
Jan 13, 2016 2:52:32 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: closed interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.ReadingInterval@137b9be1 READING
Jan 13, 2016 2:52:32 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: closed interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.IDEOpenInterval@87060c0 IDE_OPEN
Jan 13, 2016 2:52:33 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: closed interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.PerspectiveInterval@669bb57 PERSPECTIVE
Jan 13, 2016 2:52:33 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: closed interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.IDEActiveInterval@60ccf498 IDE_ACTIVE
Jan 13, 2016 2:52:33 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: closed interval nl.tudelft.watchdog.core.logic.interval.intervaltypes.DebugInterval@359d0007 DEBUG
Jan 13, 2016 2:52:33 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Data length: 0.2412109375 kB
Jan 13, 2016 2:52:35 PM nl.tudelft.watchdog.core.util.WatchDogLogger logInfo
INFO: Shutting down Plugin...
As you can see, 6 intervals are created and they are also closed before shutting down. However, only two intervals are received at the server that I run locally: IDE_OPEN and USER_ACTIVE. Therefore, the remaining four intervals seem to be lost.
P.S. Is this issues related to #122 @Inventitech?
It seems like there is a bug in transferring the closed intervals to the server when WD is shut down. Any intervals that are still open are closed before shutting down WD and the remaining intervals are transferred to the server. However, not all of these intervals are actually tranferred.
For instance, see the following log:
As you can see, 6 intervals are created and they are also closed before shutting down. However, only two intervals are received at the server that I run locally: IDE_OPEN and USER_ACTIVE. Therefore, the remaining four intervals seem to be lost.
P.S. Is this issues related to #122 @Inventitech?