mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r677922 - /mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/Main.java
Date Fri, 18 Jul 2008 14:54:48 GMT
Author: elecharny
Date: Fri Jul 18 07:54:47 2008
New Revision: 677922

URL: http://svn.apache.org/viewvc?rev=677922&view=rev
Log:
Forgot to commit the modification to the getStat method in core. Makes Hudson hunhappy ...

Modified:
    mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/Main.java

Modified: mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/Main.java
URL: http://svn.apache.org/viewvc/mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/Main.java?rev=677922&r1=677921&r2=677922&view=diff
==============================================================================
--- mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/Main.java (original)
+++ mina/trunk/example/src/main/java/org/apache/mina/example/echoserver/Main.java Fri Jul
18 07:54:47 2008
@@ -57,7 +57,8 @@
         System.out.println("Listening on port " + PORT);
         
         for (;;) {
-            System.out.println("R: " + acceptor.getReadBytesThroughput() + ", W: " + acceptor.getWrittenBytesThroughput());
+            System.out.println("R: " + acceptor.getStatistics().getReadBytesThroughput()
+ 
+                ", W: " + acceptor.getStatistics().getWrittenBytesThroughput());
             Thread.sleep(3000);
         }
     }
@@ -69,10 +70,4 @@
         chain.addLast("sslFilter", sslFilter);
         System.out.println("SSL ON");
     }
-
-    private static void addLogger(DefaultIoFilterChainBuilder chain)
-            throws Exception {
-        chain.addLast("logger", new LoggingFilter());
-        System.out.println("Logging ON");
-    }
 }



Mime
View raw message