Project JXTA

net.jxta.util
Class SimpleRdvManager

net.jxta.util.SimpleRdvManager
All Implemented Interfaces:
RendezVousManager

public class SimpleRdvManager
implements RendezVousManager

This class implements a very simple RendezVousService manager


Field Summary
static long PollDelay
           
 
Constructor Summary
SimpleRdvManager(PeerGroup g)
           
 
Method Summary
 long requestConnection(Advertisement adv)
          This is called by the RendezVousService service each time a new Peer is requesting a connection.
 void signal(net.jxta.util.JxtaTimer t)
          This implementation of Rendezvous Manager periodically pools peers and groups advertisements from other peers.
 

Field Detail

PollDelay

public static final long PollDelay
Constructor Detail

SimpleRdvManager

public SimpleRdvManager(PeerGroup g)
Method Detail

requestConnection

public long requestConnection(Advertisement adv)
This is called by the RendezVousService service each time a new Peer is requesting a connection. The RendezVousService Manager returns zero if the peer is not authorized to be connected, otherwise returns a lease time (in milliseconds) for which the peer is authorized.
Specified by:
requestConnection in interface RendezVousManager
Following copied from interface: net.jxta.rendezvous.RendezVousManager
Parameters:
adv - Advertisment of the Peer to be connected
Returns:
long lease connection to the rendezvous

signal

public void signal(net.jxta.util.JxtaTimer t)
This implementation of Rendezvous Manager periodically pools peers and groups advertisements from other peers.

Project JXTA