org.mbari.siam.utils
Class SiamSocketFactory

java.lang.Object
  extended by java.rmi.server.RMISocketFactory
      extended by org.mbari.siam.utils.SiamSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory

public class SiamSocketFactory
extends java.rmi.server.RMISocketFactory


Field Summary
protected  java.rmi.server.RMISocketFactory _defaultFactory
           
protected  java.lang.String _serverHost
           
 
Constructor Summary
SiamSocketFactory(java.lang.String serverHost)
           
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
           
 java.net.Socket createSocket(java.lang.String host, int port)
           
 
Methods inherited from class java.rmi.server.RMISocketFactory
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_defaultFactory

protected java.rmi.server.RMISocketFactory _defaultFactory

_serverHost

protected java.lang.String _serverHost
Constructor Detail

SiamSocketFactory

public SiamSocketFactory(java.lang.String serverHost)
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Specified by:
createServerSocket in class java.rmi.server.RMISocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException
Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Specified by:
createSocket in class java.rmi.server.RMISocketFactory
Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.