September 2002
Intermediate to advanced
416 pages
14h 46m
English
SimpleRdvMonitor
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(); }
Read now
Unlock full access