com.ibm.di.api.remote.impl
Class PortPoolSocketFactory

java.lang.Object
  extended by com.ibm.di.api.remote.impl.PortPoolSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIServerSocketFactory

public class PortPoolSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIServerSocketFactory

This wrapper class constructs a Socket using a port from a list of available ports.

Since:
7.1

Constructor Summary
PortPoolSocketFactory(java.rmi.server.RMIServerSocketFactory orig)
          Constructor specifying the real factory to use.
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          Create a ServerSocket.
 boolean equals(java.lang.Object obj)
          (non-JavaDoc)
 int hashCode()
          (non-JavaDoc)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortPoolSocketFactory

public PortPoolSocketFactory(java.rmi.server.RMIServerSocketFactory orig)
Constructor specifying the real factory to use.

Parameters:
orig - Factory to use.
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
Create a ServerSocket.

Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Parameters:
port - If 0, use a port number from the list of available ports.
Throws:
java.io.IOException
See Also:
RMIServerSocketFactory.createServerSocket(int)

hashCode

public int hashCode()
(non-JavaDoc)

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
(non-JavaDoc)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)