diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-04 21:02:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-04 21:02:29 +1200 |
commit | 5060907d594f54287e9cbd402c1d8804151fcede (patch) | |
tree | c0838ec098ff81ea5eba4eeee1e6673213f30407 /src/org/traccar/ServerManager.java | |
parent | 0c9878c854000353f6b2f0e55e2887af30dc19ee (diff) | |
download | trackermap-server-5060907d594f54287e9cbd402c1d8804151fcede.tar.gz trackermap-server-5060907d594f54287e9cbd402c1d8804151fcede.tar.bz2 trackermap-server-5060907d594f54287e9cbd402c1d8804151fcede.zip |
Created new Suntech decoder (fix #345)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index b5e061aee..4432ad07c 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -19,16 +19,9 @@ import java.io.FileInputStream; import java.io.IOException; import java.nio.ByteOrder; import java.sql.SQLException; -import java.text.DateFormat; -import java.text.FieldPosition; -import java.text.SimpleDateFormat; -import java.util.Date; import java.util.LinkedList; import java.util.List; import java.util.Properties; -import java.util.logging.FileHandler; -import java.util.logging.Formatter; -import java.util.logging.LogRecord; import org.jboss.netty.bootstrap.ConnectionlessBootstrap; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.buffer.ChannelBuffers; @@ -113,7 +106,7 @@ public class ServerManager { initEnforaServer("enfora"); initMeiligaoServer("meiligao"); initMaxonServer("maxon"); - initST210Server("st210"); + initSuntechServer("suntech"); initProgressServer("progress"); initH02Server("h02"); initJt600Server("jt600"); @@ -359,7 +352,7 @@ public class ServerManager { } } - private void initST210Server(String protocol) throws SQLException { + private void initSuntechServer(String protocol) throws SQLException { if (isProtocolEnabled(properties, protocol)) { serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) { @Override @@ -368,7 +361,7 @@ public class ServerManager { pipeline.addLast("frameDecoder", new DelimiterBasedFrameDecoder(1024, ChannelBuffers.wrappedBuffer(delimiter))); pipeline.addLast("stringDecoder", new StringDecoder()); - pipeline.addLast("objectDecoder", new St210ProtocolDecoder(ServerManager.this)); + pipeline.addLast("objectDecoder", new SuntechProtocolDecoder(ServerManager.this)); } }); } |