diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-27 10:15:01 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 10:15:01 +1300 |
commit | 18499577b16a198762609075ff1846f354d3d712 (patch) | |
tree | 0d33302e1193724405099e1108ba04cad552a95e /src/org/traccar/BaseProtocolDecoder.java | |
parent | aaec58aec04256845dc37afd713b488071b1406b (diff) | |
parent | ccd4a65a4954bcd7d2c38b806440bb766c51b0e2 (diff) | |
download | trackermap-server-18499577b16a198762609075ff1846f354d3d712.tar.gz trackermap-server-18499577b16a198762609075ff1846f354d3d712.tar.bz2 trackermap-server-18499577b16a198762609075ff1846f354d3d712.zip |
Merge pull request #2367 from tananaev/implement_statistics
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()); |