com.sun.jdmk.comm
Class TimedRmiSocketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
com.sun.jdmk.comm.TimedRmiSocketFactory
- All Implemented Interfaces:
- java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory
public class TimedRmiSocketFactory
- extends java.rmi.server.RMISocketFactory
This class defines an RMI Socket Factory that allows to
configure a socket object with a specified timeout.
NPCTE fix for escalation 534403, bug 4624028.
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 |
TimedRmiSocketFactory
public TimedRmiSocketFactory(int commTimeout)
throws java.io.IOException
- 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
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
Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.