org.jboss.remoting.transport.multiplex
Class SocketId

java.lang.Object
  extended by org.jboss.remoting.transport.multiplex.SocketId
All Implemented Interfaces:
java.io.Serializable

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

public class SocketId
extends java.lang.Object
implements java.io.Serializable

A SocketId wraps an integer that identifies an endpoint of a virtual connection. Each virtual socket group is created with a standard set of system endpoints used for protocol messages. These have standard negative integer values that are reused in each virtual socket group. Virtual sockets are created with a SocketId whose value is unique in its JVM.

Copyright (c) 2005

Author:
Ron Sigal TODO: verify bytes has no 0's
See Also:
Serialized Form

Field Summary
static int BACKCHANNEL_PORT
          Deprecated.  
static SocketId BACKCHANNEL_SOCKET_ID
          Deprecated.  
static int DEADLETTER_PORT
          Deprecated.  
static SocketId DEADLETTER_SOCKET_ID
          Deprecated.  
static int INITIAL_OUTPUT_PORT
          Deprecated.  
static SocketId INITIAL_OUTPUT_SOCKET_ID
          Deprecated.  
protected static org.apache.log4j.Logger log
          Deprecated.  
static int PROTOCOL_PORT
          Deprecated.  
static SocketId PROTOCOL_SOCKET_ID
          Deprecated.  
static SocketId SERVER_SOCKET_CONNECT_ID
          Deprecated.  
static int SERVER_SOCKET_CONNECT_PORT
          Deprecated.  
static SocketId SERVER_SOCKET_ID
          Deprecated.  
static int SERVER_SOCKET_PORT
          Deprecated.  
static SocketId SERVER_SOCKET_VERIFY_ID
          Deprecated.  
static int SERVER_SOCKET_VERIFY_PORT
          Deprecated.  
 
Constructor Summary
  SocketId()
          Deprecated.  
  SocketId(byte[] bytes)
          Deprecated.  
  SocketId(int port)
          Deprecated.  
protected SocketId(short port)
          Deprecated.  
 
Method Summary
protected  void checkPortValue(int port)
          Deprecated.  
 boolean equals(java.lang.Object o)
          Deprecated.  
protected static void freePort(int port)
          Deprecated.  
protected static int getFreePort()
          Deprecated.  
 int getPort()
          Deprecated.  
 int hashCode()
          Deprecated.  
 void releasePort()
          Deprecated.  
protected  void setBytes(int port)
          Deprecated.  
static void setMaxPort(int max)
          Deprecated.  
protected  void setPort(byte[] bytes)
          Deprecated.  
 byte[] toByteArray()
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Deprecated. 

PROTOCOL_PORT

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

SERVER_SOCKET_PORT

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

SERVER_SOCKET_CONNECT_PORT

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

SERVER_SOCKET_VERIFY_PORT

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

BACKCHANNEL_PORT

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

DEADLETTER_PORT

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

INITIAL_OUTPUT_PORT

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

PROTOCOL_SOCKET_ID

public static final SocketId PROTOCOL_SOCKET_ID
Deprecated. 

SERVER_SOCKET_ID

public static final SocketId SERVER_SOCKET_ID
Deprecated. 

SERVER_SOCKET_CONNECT_ID

public static final SocketId SERVER_SOCKET_CONNECT_ID
Deprecated. 

SERVER_SOCKET_VERIFY_ID

public static final SocketId SERVER_SOCKET_VERIFY_ID
Deprecated. 

BACKCHANNEL_SOCKET_ID

public static final SocketId BACKCHANNEL_SOCKET_ID
Deprecated. 

DEADLETTER_SOCKET_ID

public static final SocketId DEADLETTER_SOCKET_ID
Deprecated. 

INITIAL_OUTPUT_SOCKET_ID

public static final SocketId INITIAL_OUTPUT_SOCKET_ID
Deprecated. 
Constructor Detail

SocketId

public SocketId()
Deprecated. 

SocketId

public SocketId(int port)
         throws java.io.IOException
Deprecated. 
Parameters:
port -
Throws:
java.io.IOException

SocketId

public SocketId(byte[] bytes)
         throws java.io.IOException
Deprecated. 
Parameters:
id -
Throws:
java.io.IOException

SocketId

protected SocketId(short port)
Deprecated. 
Parameters:
port -
Method Detail

toByteArray

public byte[] toByteArray()
Deprecated. 

getPort

public int getPort()
Deprecated. 

releasePort

public void releasePort()
Deprecated. 

setMaxPort

public static void setMaxPort(int max)
Deprecated. 

equals

public boolean equals(java.lang.Object o)
Deprecated. 
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

checkPortValue

protected void checkPortValue(int port)
                       throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

setPort

protected void setPort(byte[] bytes)
Deprecated. 

setBytes

protected void setBytes(int port)
Deprecated. 

freePort

protected static void freePort(int port)
Deprecated. 

getFreePort

protected static int getFreePort()
Deprecated. 


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