Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.rmi.server.RMISocketFactory
RMISocketFactory
instance is used by the RMI runtime
in order to obtain client and server sockets for RMI calls. An
application may use the setSocketFactory
method to
request that the RMI runtime use its socket factory instance
instead of the default implementation.The default socket factory implementation used goes through a three-tiered approach to creating client sockets. First, a direct socket connection to the remote VM is attempted. If that fails (due to a firewall), the runtime uses HTTP with the explicit port number of the server. If the firewall does not allow this type of communication, then HTTP to a cgi-bin script on the server is used to POST the RMI call.
Method Summary | |
ServerSocket | createServerSocket(int port)
|
ServerSocket | createServerSocket(int port,
SocketType type)
|
Socket | createSocket(String host,
int port)
|
Socket | createSocket(String host,
int port,
SocketType type)
|
static RMISocketFactory | getDefaultSocketFactory()
|
static RMIFailureHandler | getFailureHandler()
|
static RMISocketFactory | getSocketFactory()
|
static void | setFailureHandler(RMIFailureHandler fh)
|
static void | setSocketFactory(RMISocketFactory fac)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public abstract Socket createSocket(String host, int port) throws IOException
public Socket createSocket(String host, int port, SocketType type) throws IOException
public abstract ServerSocket createServerSocket(int port) throws IOException
public ServerSocket createServerSocket(int port, SocketType type) throws IOException
public static void setSocketFactory(RMISocketFactory fac) throws IOException
public static RMISocketFactory getSocketFactory()
public static RMISocketFactory getDefaultSocketFactory()
getSocketFactory
returns null.public static void setFailureHandler(RMIFailureHandler fh)
public static RMIFailureHandler getFailureHandler()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |