Project JXTA

net.jxta.rendezvous
Interface RendezVousMonitor


public interface RendezVousMonitor

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.

Since:
JXTA 1.0
See Also:
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

lostConnection

public void lostConnection(PeerID peer)
This method is called each time a RendezVous peer is not reachable anymore.
Parameters:
peer - is the PeerId of the RendezVous peer.
Since:
JXTA 1.0

newRendezVous

public void newRendezVous(Advertisement adv)
This method is called by the RendezVous service in order to provide advertisement about other RendezVous peers. This is usefull when a RendezVous peer wants to balance its load to other RendezVous
Parameters:
adv - add a new advertisement of a rendezvous
Since:
JXTA 1.0

isConnected

public 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.
Parameters:
peer - is the PeerId of the new connect RendezVous peer.
lease - is the time in millisecond that the RendezVous is ready to serve.
Since:
JXTA 1.0

Project JXTA