API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi.server. RMISocketFactory View Source
Author(s)
Ann Wollrath
Peter Jones
Since
JDK1.1
Version
1.22, 11/17/05
Serial
Hierarchy
 Object
      RMISocketFactory
Implements
 RMIClientSocketFactory
 RMIServerSocketFactory
Subclasses
Description
publicabstract abstract class RMISocketFactory
  An RMISocketFactory instance is used by the RMI runtime in order to obtain client and server sockets for RMI calls.
See also:   
Constructors
public RMISocketFactory ()
  Constructs an RMISocketFactory.
Methods
Hide/Show inherited methods
publicabstract ServerSocket createServerSocket (int port) throws IOException [Specified in RMIServerSocketFactory]
  Create a server socket on the specified port (port 0 indicates an anonymous port).
publicabstract Socket createSocket (String host, int port) throws IOException [Specified in RMIClientSocketFactory]
  Creates a client socket connected to the specified host and port.
publicstaticsynchronized RMISocketFactory getDefaultSocketFactory ()
  Returns a reference to the default socket factory used by this RMI implementation.
publicstaticsynchronized RMIFailureHandler getFailureHandler ()
  Returns the handler for socket creation failure set by the setFailureHandler method.
publicstaticsynchronized RMISocketFactory getSocketFactory ()
  Returns the socket factory set by the setSocketFactory method.
publicstaticsynchronized void setFailureHandler (RMIFailureHandler fh)
  Sets the failure handler to be called by the RMI runtime if server socket creation fails.
publicstaticsynchronized void setSocketFactory (RMISocketFactory fac) throws IOException
  Set the global socket factory from which RMI gets sockets (if the remote object is not associated with a specific client and/or server socket factory).
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar