diff options
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/ConnectionManager.java | 5 |
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>(); |