From 7e4ba0f57de50ddd5150f6553b51af040f2a420e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 5 Jul 2015 12:10:33 +1200 Subject: Use connection manager for filtering --- src/org/traccar/database/ConnectionManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/database') diff --git a/src/org/traccar/database/ConnectionManager.java b/src/org/traccar/database/ConnectionManager.java index 7ef190fcf..eb22379da 100644 --- a/src/org/traccar/database/ConnectionManager.java +++ b/src/org/traccar/database/ConnectionManager.java @@ -24,7 +24,6 @@ import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; - import org.jboss.netty.channel.Channel; import org.traccar.Protocol; import org.traccar.helper.Log; @@ -65,6 +64,10 @@ public class ConnectionManager { } } + public Position getLastPosition(long deviceId) { + return positions.get(deviceId); + } + public synchronized Collection getInitialState(Collection devices) { List result = new LinkedList(); -- cgit v1.2.3