|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RMISocketFactory
org.objectweb.carol.jndi.registry.RMIManageableSocketFactory
public class RMIManageableSocketFactory
Socket factory allowing to : - use a fixed port instead of a random port (when port is 0). (This is useful for firewall issues) - Bind on a specific IP address - Supporting multiprotocol with a multi entries socket cache
| Method Summary | |
|---|---|
java.net.ServerSocket |
createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port). |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates a client socket connected to the specified host and port. |
static java.rmi.server.RMISocketFactory |
getFactory()
Get the factory instance, null if not created |
static java.rmi.server.RMISocketFactory |
register(int port,
int objectPort,
java.net.InetAddress inetAddress,
java.lang.String protocol)
Register the factory |
| 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 |
| Method Detail |
|---|
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
createServerSocket in interface java.rmi.server.RMIServerSocketFactorycreateServerSocket in class java.rmi.server.RMISocketFactoryport - the port number
java.io.IOException - if an I/O error occurs during server socket
creationRMISocketFactory.createServerSocket(int)
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
createSocket in interface java.rmi.server.RMIClientSocketFactorycreateSocket in class java.rmi.server.RMISocketFactoryhost - the host nameport - the port number
java.io.IOException - if an I/O error occurs during socket creationRMISocketFactory.createSocket(java.lang.String, int)
public static java.rmi.server.RMISocketFactory register(int port,
int objectPort,
java.net.InetAddress inetAddress,
java.lang.String protocol)
throws java.rmi.RemoteException
port - given port number for registryobjectPort - given port number for exporting objectsinetAddress - ip to use for the bind (instead of all),
if null take default 0.0.0.0 listenerprotocol - protocol associated with the [port, inetAddress]
java.rmi.RemoteException - if the registration is not possiblepublic static java.rmi.server.RMISocketFactory getFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||