aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-05 12:10:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-05 12:10:33 +1200
commit7e4ba0f57de50ddd5150f6553b51af040f2a420e (patch)
tree29f49ceae0137ca289362847b3a6a5e73fc2ba26 /src/org/traccar/database
parentb1b22e5339d53f8b6eadb190432f4761f0380ff7 (diff)
downloadtraccar-server-7e4ba0f57de50ddd5150f6553b51af040f2a420e.tar.gz
traccar-server-7e4ba0f57de50ddd5150f6553b51af040f2a420e.tar.bz2
traccar-server-7e4ba0f57de50ddd5150f6553b51af040f2a420e.zip
Use connection manager for filtering
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/ConnectionManager.java5
1 files changed, 4 insertions, 1 deletions
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<Position> getInitialState(Collection<Long> devices) {
List<Position> result = new LinkedList<Position>();