org.jboss.remoting.transport.multiplex
Class Protocol

java.lang.Object
  extended by org.jboss.remoting.transport.multiplex.Protocol

Deprecated. As of release 2.4.0 the multiplex transport will no longer be actively supported.

public class Protocol
extends java.lang.Object

Protocol is responsible for handling internal Multiplex messages. Some of these, for example, the messages involved in creating a new connection (acceptConnect(), connect(), answerConnect()) are synchronous. Others, such as a request to shut down, are received asynchronously by Protocol.BackChannelThread.

Copyright (c) 2005

Author:
Ron Sigal

Field Summary
protected static org.jboss.logging.Logger log
          Deprecated.  
static int MP_CONNECT
          Deprecated.  
static int MP_CONNECTED
          Deprecated.  
static int MP_DISCONNECT
          Deprecated.  
static int MP_ERROR
          Deprecated.  
static int MP_FALSE
          Deprecated.  
static int MP_OUTPUT_SHUTDOWN
          Deprecated.  
static int MP_REGISTER_REMOTE_SERVER
          Deprecated.  
static int MP_REQUEST_MANAGER_SHUTDOWN
          Deprecated.  
static int MP_TRUE
          Deprecated.  
static int MP_UNREGISTER_REMOTE_SERVER
          Deprecated.  
static int MP_VERIFY_CONNECTION
          Deprecated.  
 
Constructor Summary
Protocol(MultiplexingManager manager)
          Deprecated.  
 
Method Summary
 SocketId acceptConnect(MultiplexingInputStream is, int timeout)
          Deprecated.  
 void answerConnect(MultiplexingOutputStream os, int port)
          Deprecated.  
 SocketId connect(MultiplexingInputStream is, SocketId socketId)
          Deprecated.  
 SocketId connect(MultiplexingInputStream is, SocketId socketId, int timeout)
          Deprecated.  
 void disconnect(SocketId socketId)
          Deprecated.  
static org.jboss.remoting.transport.multiplex.Protocol.BackChannelThread getBackChannelThread(VirtualSelector virtualSelector)
          Deprecated.  
 void notifyOutputShutdown(SocketId socketId)
          Deprecated.  
 void registerRemoteServerSocket(int timeout)
          Deprecated.  
 boolean requestManagerShutdown(int timeout)
          Deprecated.  
 void unregisterRemoteServerSocket()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.jboss.logging.Logger log
Deprecated. 

MP_CONNECT

public static final int MP_CONNECT
Deprecated. 
See Also:
Constant Field Values

MP_CONNECTED

public static final int MP_CONNECTED
Deprecated. 
See Also:
Constant Field Values

MP_VERIFY_CONNECTION

public static final int MP_VERIFY_CONNECTION
Deprecated. 
See Also:
Constant Field Values

MP_OUTPUT_SHUTDOWN

public static final int MP_OUTPUT_SHUTDOWN
Deprecated. 
See Also:
Constant Field Values

MP_DISCONNECT

public static final int MP_DISCONNECT
Deprecated. 
See Also:
Constant Field Values

MP_REGISTER_REMOTE_SERVER

public static final int MP_REGISTER_REMOTE_SERVER
Deprecated. 
See Also:
Constant Field Values

MP_UNREGISTER_REMOTE_SERVER

public static final int MP_UNREGISTER_REMOTE_SERVER
Deprecated. 
See Also:
Constant Field Values

MP_REQUEST_MANAGER_SHUTDOWN

public static final int MP_REQUEST_MANAGER_SHUTDOWN
Deprecated. 
See Also:
Constant Field Values

MP_ERROR

public static final int MP_ERROR
Deprecated. 
See Also:
Constant Field Values

MP_TRUE

public static final int MP_TRUE
Deprecated. 
See Also:
Constant Field Values

MP_FALSE

public static final int MP_FALSE
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

Protocol

public Protocol(MultiplexingManager manager)
         throws java.io.IOException
Deprecated. 
Parameters:
manager -
Throws:
java.io.IOException
Method Detail

getBackChannelThread

public static org.jboss.remoting.transport.multiplex.Protocol.BackChannelThread getBackChannelThread(VirtualSelector virtualSelector)
Deprecated. 
Parameters:
virtualSelector -
Returns:

connect

public SocketId connect(MultiplexingInputStream is,
                        SocketId socketId)
                 throws java.io.IOException
Deprecated. 
Parameters:
is -
socketId -
Returns:
Throws:
java.io.IOException

connect

public SocketId connect(MultiplexingInputStream is,
                        SocketId socketId,
                        int timeout)
                 throws java.io.IOException
Deprecated. 
Parameters:
is -
socketId -
Returns:
Throws:
java.io.IOException

acceptConnect

public SocketId acceptConnect(MultiplexingInputStream is,
                              int timeout)
                       throws java.io.IOException
Deprecated. 
Parameters:
is -
timeout -
Returns:
Throws:
java.io.IOException

answerConnect

public void answerConnect(MultiplexingOutputStream os,
                          int port)
                   throws java.io.IOException
Deprecated. 
Parameters:
os -
port -
Throws:
java.io.IOException

notifyOutputShutdown

public void notifyOutputShutdown(SocketId socketId)
Deprecated. 
Parameters:
socketId -

disconnect

public void disconnect(SocketId socketId)
Deprecated. 
Parameters:
socketId -

registerRemoteServerSocket

public void registerRemoteServerSocket(int timeout)
                                throws java.io.IOException
Deprecated. 
Parameters:
timeout -
Throws:
java.io.IOException

unregisterRemoteServerSocket

public void unregisterRemoteServerSocket()
Deprecated. 

requestManagerShutdown

public boolean requestManagerShutdown(int timeout)
                               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.