aboutsummaryrefslogtreecommitdiff
path: root/src/net/sourceforge
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2010-04-11 20:04:49 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2010-04-11 20:04:49 +0000
commitf519b288d61b29ed35be566a297cd3282bcb2820 (patch)
treebfe503166316aa162f6f98b17ebcf55747379b4b /src/net/sourceforge
parent18c59be852245d9327708c6c15552dafc88e7cf8 (diff)
downloadtraccar-server-f519b288d61b29ed35be566a297cd3282bcb2820.tar.gz
traccar-server-f519b288d61b29ed35be566a297cd3282bcb2820.tar.bz2
traccar-server-f519b288d61b29ed35be566a297cd3282bcb2820.zip
Diffstat (limited to 'src/net/sourceforge')
-rw-r--r--src/net/sourceforge/opentracking/Daemon.java1
-rw-r--r--src/net/sourceforge/opentracking/TrackerEventHandler.java6
-rw-r--r--src/net/sourceforge/opentracking/TrackerServer.java2
-rw-r--r--src/net/sourceforge/opentracking/protocol/xexun/XexunFrameDecoder.java2
-rw-r--r--src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java2
5 files changed, 6 insertions, 7 deletions
diff --git a/src/net/sourceforge/opentracking/Daemon.java b/src/net/sourceforge/opentracking/Daemon.java
index aff742fa0..493d47191 100644
--- a/src/net/sourceforge/opentracking/Daemon.java
+++ b/src/net/sourceforge/opentracking/Daemon.java
@@ -25,7 +25,6 @@ import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import net.sourceforge.opentracking.helper.NamedParameterStatement;
-import org.jboss.netty.handler.codec.frame.FixedLengthFrameDecoder;
import org.jboss.netty.handler.codec.string.StringDecoder;
import net.sourceforge.opentracking.protocol.xexun.XexunFrameDecoder;
import net.sourceforge.opentracking.protocol.xexun.XexunProtocolDecoder;
diff --git a/src/net/sourceforge/opentracking/TrackerEventHandler.java b/src/net/sourceforge/opentracking/TrackerEventHandler.java
index 845ba650c..218dd944b 100644
--- a/src/net/sourceforge/opentracking/TrackerEventHandler.java
+++ b/src/net/sourceforge/opentracking/TrackerEventHandler.java
@@ -41,7 +41,7 @@ public class TrackerEventHandler extends SimpleChannelHandler {
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {
- System.out.println("message recieved");
+ //System.out.println("message recieved");
if (e.getMessage() instanceof Position) {
@@ -49,14 +49,14 @@ public class TrackerEventHandler extends SimpleChannelHandler {
try {
dataManager.writePosition((Position) e.getMessage());
} catch (Exception error) {
- System.out.println("write error");
+ //System.out.println("write error");
}
}
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {
- System.out.println("error: " + e.getCause().getMessage());
+ //System.out.println("error: " + e.getCause().getMessage());
e.getChannel().close();
}
diff --git a/src/net/sourceforge/opentracking/TrackerServer.java b/src/net/sourceforge/opentracking/TrackerServer.java
index 76e5b1bbf..0dc40e8b4 100644
--- a/src/net/sourceforge/opentracking/TrackerServer.java
+++ b/src/net/sourceforge/opentracking/TrackerServer.java
@@ -47,7 +47,7 @@ public class TrackerServer extends ServerBootstrap {
@Override
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) {
- System.out.println("connected: " + e.getChannel().getRemoteAddress());
+ //System.out.println("connected: " + e.getChannel().getRemoteAddress());
server.getChannelGroup().add(e.getChannel());
}
}
diff --git a/src/net/sourceforge/opentracking/protocol/xexun/XexunFrameDecoder.java b/src/net/sourceforge/opentracking/protocol/xexun/XexunFrameDecoder.java
index 338c7bec9..be0a92dc6 100644
--- a/src/net/sourceforge/opentracking/protocol/xexun/XexunFrameDecoder.java
+++ b/src/net/sourceforge/opentracking/protocol/xexun/XexunFrameDecoder.java
@@ -21,7 +21,7 @@ public class XexunFrameDecoder extends FrameDecoder {
Channel channel,
ChannelBuffer buf) throws Exception {
- System.out.println("read: " + buf.readableBytes());
+ //System.out.println("read: " + buf.readableBytes());
// Check minimum length
int length = buf.readableBytes();
diff --git a/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java b/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
index cfd88fe6e..226c6ac0f 100644
--- a/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
+++ b/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
@@ -99,7 +99,7 @@ public class XexunProtocolDecoder extends OneToOneDecoder {
// Parse message
String sentence = (String) msg;
- System.out.println("parse: " + sentence);
+ //System.out.println("parse: " + sentence);
Matcher parser = pattern.matcher(sentence);
if (!parser.matches()) {
throw new ParseException(null, 0);