|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRMIUtils
Utility interface used to abstract and encapsulate the configuration initialization and shutdown of RMI
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
java.rmi.registry.Registry getLocalRegistry()
java.rmi.registry.Registry getRemoteRegistry(java.lang.String host)
host - The IP address or host name of the remote machine
java.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||