summaryrefslogtreecommitdiff
path: root/qpid/java/common/src/test
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-07-22 18:33:00 +0000
committerRafael H. Schloming <rhs@apache.org>2008-07-22 18:33:00 +0000
commitda0e38aee411e9bcfa6d0c73811c41e11efc64bf (patch)
treef4862ace3963a310ef5e79e7c0d82409e242aa40 /qpid/java/common/src/test
parentcfed390d5d3a7a9d6f76c1bd25f009b630317bdc (diff)
downloadqpid-python-da0e38aee411e9bcfa6d0c73811c41e11efc64bf.tar.gz
Updated the io transport to use a separate write thread with a circular buffer that does opportunistic write batching. Fixed error handling and shutdown for the io transport. Switched default from mina to the io transport for the 0-10 client. Modified InputHandler to accumulate bytes in the outer loop and simplified the state machine accordingly. These changes should address QPID-1188, prevent the Java client from running out of memory when writing messages faster than the network and/or broker can keep up, and in general improve performance.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@678848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src/test')
-rw-r--r--qpid/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java b/qpid/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java
index 281b618408..c604aaf3e4 100644
--- a/qpid/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java
+++ b/qpid/java/common/src/test/java/org/apache/qpidity/transport/ConnectionTest.java
@@ -24,6 +24,7 @@ import org.apache.mina.util.AvailablePortFinder;
import org.apache.qpid.util.concurrent.Condition;
+import org.apache.qpidity.transport.network.io.IoTransport;
import org.apache.qpidity.transport.network.mina.MinaHandler;
import org.apache.qpidity.transport.util.Logger;
@@ -67,7 +68,7 @@ public class ConnectionTest extends TestCase
private Connection connect(final Condition closed)
{
- Connection conn = MinaHandler.connect("localhost", port, new ConnectionDelegate()
+ Connection conn = IoTransport.connect("localhost", port, new ConnectionDelegate()
{
public SessionDelegate getSessionDelegate()
{