public final class Registry extends Object
| Constructor and Description |
|---|
Registry() |
| Modifier and Type | Method and Description |
|---|---|
Hashtable |
get()
This method is called by remote VMs, to request a copy of the remote
object reference registry.
|
String |
getDescription()
Always a good idea; this method describes how to use the registry
object, and what its features are.
|
static void |
main(String[] args)
This method is used to start up the registry server.
|
void |
multicast(Multicast multicast)
This method is called solely by this registry's Multicast member
object, to register objects of remote server announcements.
|
void |
post(RemoteInvoke ref)
This method statically called by a remote machine to register an object
reference.
|
public void multicast(Multicast multicast)
public void post(RemoteInvoke ref) throws ServerNotActiveException
ref - The remote reference to the object to be registeredServerNotActiveExceptionpublic Hashtable get()
public String getDescription()
public static void main(String[] args)
Note: to build this application, it will also require an RMI stub class for Remote. This means you must also run the following instruction:
rmic -v1.2 gnu.cajo.invoke.Remote
args - If the server is behind a NAT router, the only argument
should be the network address used outside the router. Otherwise
provide nothing, and it will use the default local address.Copyright © 2016. All Rights Reserved.