diff options
author | Anton Tananaev <anton@traccar.org> | 2024-06-24 07:53:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-06-24 07:53:42 -0700 |
commit | 690f734e423a6ebe55b3bef5b7ac42cc734b664f (patch) | |
tree | 237a985fddeca7876dc717f8323d28eb377c60a0 /src/main/java/org/traccar/database | |
parent | e9b1392ddc72bd8d5adcde69012e90cb4004c930 (diff) | |
download | trackermap-server-690f734e423a6ebe55b3bef5b7ac42cc734b664f.tar.gz trackermap-server-690f734e423a6ebe55b3bef5b7ac42cc734b664f.tar.bz2 trackermap-server-690f734e423a6ebe55b3bef5b7ac42cc734b664f.zip |
Health check for stored messages
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r-- | src/main/java/org/traccar/database/StatisticsManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/database/StatisticsManager.java b/src/main/java/org/traccar/database/StatisticsManager.java index 8711289a0..d13f72793 100644 --- a/src/main/java/org/traccar/database/StatisticsManager.java +++ b/src/main/java/org/traccar/database/StatisticsManager.java @@ -178,6 +178,10 @@ public class StatisticsManager { } } + public synchronized int messageStoredCount() { + return messagesStored; + } + public synchronized int messageStoredCount(long deviceId) { return deviceMessages.getOrDefault(deviceId, 0); } |