aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-30 09:51:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-30 09:51:23 +1200
commit727e7bfad908abd899d1114c5405f9bf69b47ebc (patch)
tree5c66197f72f4cbb42a1b5cecd5a71fed4b2ed757 /src/org/traccar/database/DataManager.java
parent54c54703d66e8991472c1f7476ba4acb424b27d9 (diff)
downloadtrackermap-server-727e7bfad908abd899d1114c5405f9bf69b47ebc.tar.gz
trackermap-server-727e7bfad908abd899d1114c5405f9bf69b47ebc.tar.bz2
trackermap-server-727e7bfad908abd899d1114c5405f9bf69b47ebc.zip
Active devices in connection manager
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 62275af3c..07e50ff5d 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -17,7 +17,6 @@ package org.traccar.database;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import java.io.File;
-import java.net.SocketAddress;
import java.net.URL;
import java.net.URLClassLoader;
import java.sql.Connection;
@@ -34,9 +33,7 @@ import java.util.Properties;
import javax.naming.InitialContext;
import javax.sql.DataSource;
-import org.jboss.netty.channel.Channel;
import org.traccar.Context;
-import org.traccar.Protocol;
import org.traccar.helper.DriverDelegate;
import org.traccar.helper.Log;
import org.traccar.http.AsyncServlet;
@@ -56,7 +53,6 @@ public class DataManager {
private DataSource dataSource;
private final Map<String, Device> devices = new HashMap<String, Device>();
- private Map<String, ActiveDevice> activeDevices = new HashMap<String, ActiveDevice>();
private long devicesLastUpdate;
private long devicesRefreshDelay;
@@ -79,14 +75,6 @@ public class DataManager {
return dataSource;
}
- public void setActiveDevice(String uniqueId, Protocol protocol, Channel channel, SocketAddress remoteAddress) {
- this.activeDevices.put(uniqueId, new ActiveDevice(uniqueId, protocol, channel, remoteAddress));
- }
-
- public ActiveDevice getActiveDevice(String uniqueId) {
- return this.activeDevices.get(uniqueId);
- }
-
private void initDatabase(Properties properties) throws Exception {
String jndiName = properties.getProperty("database.jndi");