public interface IRMIUtils
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalAddress()
This method is designed to reliably return the actual local IP address
across multiple platforms, particularly Linux.
|
java.rmi.registry.Registry |
getLocalRegistry()
Returns the RMI Registry on the local machine on port
IRMI_Defs.REGISTRY_PORT, as a server would require.
|
java.rmi.registry.Registry |
getRemoteRegistry(java.lang.String host)
Returns the RMI Registry on a remote machine on port
IRMI_Defs.REGISTRY_PORT, as a client would require.
|
void |
startRMI(int classServerPort)
Start up the RMI system.
|
void |
stopRMI()
Performs all necessary work to shut the RMI system down,
such as shut the class server down.
|
java.rmi.registry.Registry getLocalRegistry()
java.rmi.registry.Registry getRemoteRegistry(java.lang.String host)
host
- The IP address or host name of the remote machinejava.lang.String getLocalAddress() throws java.net.SocketException, java.net.UnknownHostException
java.net.SocketException
- thrown when there is a problem retrieving the network
interfaces.java.net.UnknownHostException
- thrown when the local host address cannot be found.void startRMI(int classServerPort)
classServerPort
- the port that the class server will usevoid stopRMI()