[jboss-cvs] JBoss Messaging SVN: r3447 - branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 7 09:24:09 EST 2007
Author: jmesnil
Date: 2007-12-07 09:24:09 -0500 (Fri, 07 Dec 2007)
New Revision: 3447
Added:
branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOConnectorAdapter.java
branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOSessionAdapter.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-544 Replace client-server transport with NIO based transport
* refactoring
Added: branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOConnectorAdapter.java
===================================================================
--- branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOConnectorAdapter.java (rev 0)
+++ branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOConnectorAdapter.java 2007-12-07 14:24:09 UTC (rev 3447)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.test.messaging.core.remoting;
+
+import java.io.IOException;
+
+import org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener;
+import org.jboss.messaging.core.remoting.NIOConnector;
+import org.jboss.messaging.core.remoting.NIOSession;
+import org.jboss.messaging.core.remoting.TransportType;
+
+/**
+ * @author <a href="mailto:jmesnil at redhat.com">Jeff Mesnil</a>
+ *
+ * @version <tt>$Revision$</tt>
+ *
+ */
+public class NIOConnectorAdapter implements NIOConnector
+{
+ // Constants -----------------------------------------------------
+
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ // Public --------------------------------------------------------
+
+ // NIOConnector implementation -----------------------------------
+
+ public void addConnectionListener(
+ ConsolidatedRemotingConnectionListener listener)
+ {
+ }
+
+ public NIOSession connect(String host, int port, TransportType transport)
+ throws IOException
+ {
+ return null;
+ }
+
+ public boolean disconnect()
+ {
+ return false;
+ }
+
+ public String getServerURI()
+ {
+ return null;
+ }
+
+ public void removeConnectionListener(
+ ConsolidatedRemotingConnectionListener listener)
+ {
+ }
+
+ // Package protected ---------------------------------------------
+
+ // Protected -----------------------------------------------------
+
+ // Private -------------------------------------------------------
+
+ // Inner classes -------------------------------------------------
+}
Added: branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOSessionAdapter.java
===================================================================
--- branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOSessionAdapter.java (rev 0)
+++ branches/Branch_JBMESSAGING-544/tests/src/org/jboss/test/messaging/core/remoting/NIOSessionAdapter.java 2007-12-07 14:24:09 UTC (rev 3447)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.test.messaging.core.remoting;
+
+import org.jboss.messaging.core.remoting.NIOSession;
+
+/**
+ * @author <a href="mailto:jmesnil at redhat.com">Jeff Mesnil</a>
+ *
+ * @version <tt>$Revision$</tt>
+ *
+ */
+public class NIOSessionAdapter implements NIOSession
+{
+ // Constants -----------------------------------------------------
+
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ // Public --------------------------------------------------------
+
+ // NIOSession implementation -------------------------------------
+
+ public long getID()
+ {
+ return 0;
+ }
+
+ public boolean isConnected()
+ {
+ return false;
+ }
+
+ public void write(Object object)
+ {
+ }
+
+ // Package protected ---------------------------------------------
+
+ // Protected -----------------------------------------------------
+
+ // Private -------------------------------------------------------
+
+ // Inner classes -------------------------------------------------
+}
More information about the jboss-cvs-commits
mailing list