diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-25 14:51:16 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-25 14:51:16 +1300 |
commit | 53bcb5c788e6b24bf8f6f631445b61a87c5f715f (patch) | |
tree | bffd421a1e538090ba868ff981635b1b5a01da65 /src/org/traccar/BaseProtocolDecoder.java | |
parent | d8dd2091c36099e5f2e5eeb00734cad54f342cbb (diff) | |
download | trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.tar.gz trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.tar.bz2 trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.zip |
Implement server statistics collection
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index 46832a4ca..72b9a7a74 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -129,6 +129,9 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { @Override protected void onMessageEvent(Channel channel, SocketAddress remoteAddress, Object msg) { + if (Context.getStatisticsManager() != null) { + Context.getStatisticsManager().registerMessageReceived(); + } DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession != null) { Context.getConnectionManager().updateDevice(deviceSession.getDeviceId(), Device.STATUS_ONLINE, new Date()); |