|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides an API to the Jxta RendezVous mechanism allowing applications to add, remove, monitor RendezVous peers (client side), or control the local peer, if it is a RendezVous itself.
Any peer in a peer group can become a rendezvous for a peer group. A rendezvous provides a long-range discovery mechanism where members of a peer group can find themselves. Rendezvous are advertised as part of the peer group advertisement of a peer group.
RendezVousManager
,
RendezVousMonitor
,
Discovery
,
PeerGroupAdvertisement
Method Summary | |
void |
connectRendezVous(EndpointAddress addr)
Add a peer as a new RendezVous point. |
void |
connectRendezVous(PeerGroupAdvertisement adv)
Add a peer as a new RendezVous point. |
java.util.Enumeration |
getConnectedPeers()
Returns an Enumeration of PeerID of the peers that are currentely connected. |
java.util.Enumeration |
listRendezVous()
Returns an Enumeration of the PeerID all the RendezVous on which this Peer is currentely connected. |
void |
removeRendezVous(PeerID rendezVous)
Remove a RendezVous point. |
void |
sendRendezVousAdv(PeerAdvertisement destPeer,
PeerAdvertisement rendezVous)
Sends advertisement about other RendezVous to a given peer |
RendezVousMonitor |
setMonitor(RendezVousMonitor handler)
Register a notification handler that is called each time a RendezVous peer is not reachable anymore. |
void |
startRendezVous(RendezVousManager handler)
Start the local peer as a RendezVous peer. |
void |
stopRendezVous()
Stop the RendezVous function on the local Peer. |
Methods inherited from interface net.jxta.service.Service |
getAdvertisement,
getInterface |
Methods inherited from interface net.jxta.platform.Application |
init,
startApp,
stopApp |
Method Detail |
public void connectRendezVous(PeerGroupAdvertisement adv) throws java.io.IOException
adv
- the advertisement of the RendezVous peerpublic void connectRendezVous(EndpointAddress addr) throws java.io.IOException
addr
- EndpointAddress of the rendezvous peerpublic void removeRendezVous(PeerID rendezVous)
rendezVous
- the PeerId of the RendezVous point to removepublic RendezVousMonitor setMonitor(RendezVousMonitor handler)
handler
- a handler that is called each time a RendezVous peer is
is not reachable anymore.public java.util.Enumeration listRendezVous()
public void startRendezVous(RendezVousManager handler) throws java.io.IOException
handler
- is the RendezVousManager that will be invoked each
time a new Peer request to be connected.public void stopRendezVous()
public java.util.Enumeration getConnectedPeers()
public void sendRendezVousAdv(PeerAdvertisement destPeer, PeerAdvertisement rendezVous)
destPeer
- is the advertisement of the peer to which to
send the RendezVous advertisement.rendezVous
- is the advertisment of a RendezVous peer
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |