com.sun.jdmk.comm
Class TimedRmiSocketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
com.sun.jdmk.comm.TimedRmiSocketFactory
- All Implemented Interfaces:
- RMIClientSocketFactory, RMIServerSocketFactory
public class TimedRmiSocketFactory
- extends 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimedRmiSocketFactory
public TimedRmiSocketFactory(int commTimeout)
throws IOException
- Throws:
IOException
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Specified by:
createSocket
in interface RMIClientSocketFactory
- Specified by:
createSocket
in class RMISocketFactory
- Throws:
IOException
createServerSocket
public ServerSocket createServerSocket(int port)
throws IOException
- Specified by:
createServerSocket
in interface RMIServerSocketFactory
- Specified by:
createServerSocket
in class RMISocketFactory
- Throws:
IOException
Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.