Name

SimpleRdvMonitor

Synopsis

This class is a simple implementation of the rendezvous monitor. It uses the simple rendezvous manager to accept connections and handles all of the basic details for publishing discovered advertisements. It is not used by the JXTA core, but it is a good starting point for the implementation of your own monitor.

public class SimpleRdvMonitor implements net.jxta.rendezvous.RendezVousMonitor, net.jxta.impl.util.JxtaTimerHandler {
// Public Constructors
   public SimpleRdvMonitor(net.jxta.peergroup.PeerGroup g, net.jxta.rendezvous.RendezVousService rendezvous);
// Inner Classes
   public class RdV; 
// Public Instance Methods
   public void signal(net.jxta.impl.util.JxtaTimer timer);     
// synchronized
                  // Methods Implementing RendezVousMonitor
   public void connected(net.jxta.peer.PeerID peer, long lease); 
   public void disconnected(net.jxta.peer.PeerID peer);  
   public void discovered(net.jxta.document.Advertisement adv);
// Protected Instance Methods
   protected void startRdv();  
}

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.