From f519b288d61b29ed35be566a297cd3282bcb2820 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 11 Apr 2010 20:04:49 +0000 Subject: --- src/net/sourceforge/opentracking/Daemon.java | 1 - src/net/sourceforge/opentracking/TrackerEventHandler.java | 6 +++--- src/net/sourceforge/opentracking/TrackerServer.java | 2 +- .../sourceforge/opentracking/protocol/xexun/XexunFrameDecoder.java | 2 +- .../opentracking/protocol/xexun/XexunProtocolDecoder.java | 2 +- 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); -- cgit v1.2.3