|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject jxl.peermi.PeerRemoteObject jxl.peermi.PeerRegistry
public final class PeerRegistry
PeerRegistry is the universal lookup point for PeerRemote objects. Once activated, PeerRegistries use jxta multicast to locate one another. After that all lookup operations are forwarded to the peer registries and bound remote objects are returned.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Method Summary | ||
---|---|---|
void |
addDiscoveryListener(java.lang.String binding,
DiscoveryListener listener)
|
|
void |
addRegistry(PeerRegistryInterface reg)
Remote method. |
|
boolean |
bind(PeerRemoteObject p,
java.lang.String name)
If name is not already bound, bind p to name . |
|
static PeerRegistry |
getLocalInstance()
Get singleton instance of PeerRegistry. |
|
PeerRemote |
lookup(java.lang.String name)
Remote method. |
|
void |
removeDiscoveryListener(java.lang.String binding,
DiscoveryListener listener)
|
|
|
requestPeerManager(java.lang.String name,
java.lang.Class<T> ifaceType)
Return PeerManager for binding name for interfact type
ifaceType . |
Methods inherited from class jxl.peermi.PeerRemoteObject |
---|
checkAlive, isAlive, toStub |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jxl.peermi.PeerRemote |
---|
checkAlive |
Method Detail |
---|
public static PeerRegistry getLocalInstance() throws java.rmi.RemoteException
java.rmi.RemoteException
public void addDiscoveryListener(java.lang.String binding, DiscoveryListener listener)
public void removeDiscoveryListener(java.lang.String binding, DiscoveryListener listener)
public void addRegistry(PeerRegistryInterface reg) throws java.rmi.RemoteException
addRegistry
in interface PeerRegistryInterface
java.rmi.RemoteException
public boolean bind(PeerRemoteObject p, java.lang.String name) throws java.rmi.RemoteException
name
is not already bound, bind p
to name
. If p
is an instance of
PeerRemoteObject the result of toStub()
is bound to this registry,
else p
is asumed to be a remote stub, and it is bound itself.
If name
was bound return false and do not bind p
.
p
- name
-
p
was bound, false otherwise.
java.rmi.RemoteException
public PeerRemote lookup(java.lang.String name) throws java.rmi.RemoteException
jxl.peermi.PeerRegistry#lookupAll(String)
instead.
lookup
in interface PeerRegistryInterface
java.rmi.RemoteException
public <T extends PeerRemote> PeerManager<T> requestPeerManager(java.lang.String name, java.lang.Class<T> ifaceType) throws java.rmi.RemoteException
name
for interfact type
ifaceType
.
name
- Binding to lookup.
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |