|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.cajo.Cajo.Registrar
public static final class Cajo.Registrar
This internal use only helper class maintains a registry of exported objects. It cannot be instantiated outside this class, it is made public only because it is being invoked reflectively. It uses UDP multicasts to find other instances of registries, and shares references between them.
Method Summary | |
---|---|
java.lang.Object |
multicast(Multicast multicast)
This method is called either when a Cajo instance starts up, or exports an object reference. |
void |
register(java.util.Vector elements)
This method is called either by remote JVMs to provide a copy of their registry, in response to a startup or export announcement. |
java.util.Vector |
request()
This method allows remote JVMs to request the contents of the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object multicast(Multicast multicast) throws java.lang.Exception
multicast
- A reference to the announcing JVM
java.lang.Exception
- if the request for remote references failed, or the
sending its reference collection failed, for either network, or
application specific reasons.public void register(java.util.Vector elements)
elements
- A collection of remote object referencespublic java.util.Vector request()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |