aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-25 14:51:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-25 14:51:16 +1300
commit53bcb5c788e6b24bf8f6f631445b61a87c5f715f (patch)
treebffd421a1e538090ba868ff981635b1b5a01da65 /src/org/traccar/Context.java
parentd8dd2091c36099e5f2e5eeb00734cad54f342cbb (diff)
downloadtrackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.tar.gz
trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.tar.bz2
trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.zip
Implement server statistics collection
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 5a3dca878..827761cc5 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -25,6 +25,7 @@ import org.traccar.database.IdentityManager;
import org.traccar.database.NotificationManager;
import org.traccar.database.PermissionsManager;
import org.traccar.database.GeofenceManager;
+import org.traccar.database.StatisticsManager;
import org.traccar.geocode.BingMapsReverseGeocoder;
import org.traccar.geocode.FactualReverseGeocoder;
import org.traccar.geocode.GeocodeFarmReverseGeocoder;
@@ -142,6 +143,12 @@ public final class Context {
return aliasesManager;
}
+ private static StatisticsManager statisticsManager;
+
+ public static StatisticsManager getStatisticsManager() {
+ return statisticsManager;
+ }
+
public static void init(String[] arguments) throws Exception {
config = new Config();
@@ -245,6 +252,8 @@ public final class Context {
aliasesManager = new AliasesManager(dataManager);
+ statisticsManager = new StatisticsManager();
+
}
public static void init(IdentityManager testIdentityManager) {