ibis.rmi.server
Class RMISocketFactory

java.lang.Object
  extended by ibis.rmi.server.RMISocketFactory
All Implemented Interfaces:
RMIClientSocketFactory, RMIServerSocketFactory

public abstract class RMISocketFactory
extends Object
implements RMIClientSocketFactory, RMIServerSocketFactory

Ibis has no support for RMISocketFactories.


Constructor Summary
RMISocketFactory()
          Constructs an RMISocketFactory.
 
Method Summary
abstract  ServerSocket createServerSocket(int port)
          Creates a server socket on the specified port.
abstract  Socket createSocket(String host, int port)
          Creates a client socket connected to the specified host and port.
static RMISocketFactory getDefaultSocketFactory()
          Returns a reference to the default socket factory used by this RMI implementation.
static RMIFailureHandler getFailureHandler()
          Gets the failure handler that is called by the RMI runtime if server socket creation fails.
static RMISocketFactory getSocketFactory()
          Gets the global socket factory from which RMI gets sockets (not supported in Ibis RMI).
static void setFailureHandler(RMIFailureHandler fh)
          Sets the failure handler to be called by the RMI runtime if server socket creation fails.
static void setSocketFactory(RMISocketFactory fac)
          Set the global socket factory from which RMI gets sockets (not supported in Ibis RMI).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMISocketFactory

public RMISocketFactory()
Constructs an RMISocketFactory.

Method Detail

createSocket

public abstract Socket createSocket(String host,
                                    int port)
                             throws IOException
Creates a client socket connected to the specified host and port.

Specified by:
createSocket in interface RMIClientSocketFactory
Parameters:
host - the host name.
port - the port number.
Returns:
a socket connected to the specified host and port.
Throws:
IOException - if an I/O error occurs during socket creation.

createServerSocket

public abstract ServerSocket createServerSocket(int port)
                                         throws IOException
Creates a server socket on the specified port.

Specified by:
createServerSocket in interface RMIServerSocketFactory
Parameters:
port - the port number
Returns:
the server socket on the specified port
Throws:
IOException - if an I/O error occurs during server socket creation

setSocketFactory

public static void setSocketFactory(RMISocketFactory fac)
Set the global socket factory from which RMI gets sockets (not supported in Ibis RMI).

Parameters:
fac - the socket factory.

getSocketFactory

public static RMISocketFactory getSocketFactory()
Gets the global socket factory from which RMI gets sockets (not supported in Ibis RMI).

Returns:
the socket factory.

getDefaultSocketFactory

public static RMISocketFactory getDefaultSocketFactory()
Returns a reference to the default socket factory used by this RMI implementation. Not supported.

Returns:
the default RMI socket factory.

setFailureHandler

public static void setFailureHandler(RMIFailureHandler fh)
Sets the failure handler to be called by the RMI runtime if server socket creation fails. Not supported in Ibis RMI.

Parameters:
fh - the failure handler.

getFailureHandler

public static RMIFailureHandler getFailureHandler()
Gets the failure handler that is called by the RMI runtime if server socket creation fails. Not supported in Ibis RMI.

Returns:
the failure handler.


The Ibis project