org.mbari.siam.core
Class NodeSocketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
org.mbari.siam.core.NodeSocketFactory
- All Implemented Interfaces:
- java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory
public class NodeSocketFactory
- extends java.rmi.server.RMISocketFactory
Socket factory used on the node.
|
Method Summary |
java.net.ServerSocket |
createServerSocket(int port)
|
java.net.Socket |
createSocket(java.lang.String serverHost,
int port)
Create client-side socket. |
| 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 |
DEFAULT_TIMEOUT
protected static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
_defaultFactory
protected java.rmi.server.RMISocketFactory _defaultFactory
_localHostAddr
protected java.net.InetAddress _localHostAddr
_readTimeout
protected int _readTimeout
NodeSocketFactory
public NodeSocketFactory()
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 serverHost,
int port)
throws java.io.IOException
- Create client-side socket.
Note that some node components may talk to the node server or
device servers via RMI. So we must ensure that these invocations
work in absence of an enabled network interface.
- 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.