com.sun.jdmk.comm
Class TimedRmiSocketFactory

java.lang.Object
  extended by java.rmi.server.RMISocketFactory
      extended by 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.


Constructor Summary
TimedRmiSocketFactory(int commTimeout)
           
 
Method Summary
 ServerSocket createServerSocket(int port)
           
 Socket createSocket(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
 

Constructor Detail

TimedRmiSocketFactory

public TimedRmiSocketFactory(int commTimeout)
                      throws IOException
Throws:
IOException
Method Detail

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

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.