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

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

public class PortPoolSocketFactory
extends Object
implements RMIServerSocketFactory

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

Since:
7.1

Constructor Summary
PortPoolSocketFactory(RMIServerSocketFactory orig)
          Constructor specifying the real factory to use.
 
Method Summary
 ServerSocket createServerSocket(int port)
          Create a ServerSocket.
 boolean equals(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(RMIServerSocketFactory orig)
Constructor specifying the real factory to use.

Parameters:
orig - Factory to use.
Method Detail

createServerSocket

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

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

hashCode

public int hashCode()
(non-JavaDoc)

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

equals

public boolean equals(Object obj)
(non-JavaDoc)

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