|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by the program that controls RendezVous on a peer that uses them.
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
,
RendezVous
,
Discovery
,
PeerGroupAdvertisement
Method Summary | |
void |
isConnected(PeerID peer,
long lease)
This method is called by the RendezVous service to notify the monitor that a new RendezVous has accepted the connection. |
void |
lostConnection(PeerID peer)
This method is called each time a RendezVous peer is not reachable anymore. |
void |
newRendezVous(Advertisement adv)
This method is called by the RendezVous service in order to provide advertisement about other RendezVous peers. |
Method Detail |
public void lostConnection(PeerID peer)
peer
- is the PeerId of the RendezVous peer.public void newRendezVous(Advertisement adv)
adv
- add a new advertisement of a rendezvouspublic void isConnected(PeerID peer, long lease)
peer
- is the PeerId of the new connect RendezVous peer.lease
- is the time in millisecond that the RendezVous is
ready to serve.
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |