Project JXTA

net.jxta.impl.rendezvous
Class RdvManager

java.lang.Object
  |
  +--net.jxta.impl.rendezvous.RdvManager

public class RdvManager
extends java.lang.Object
implements net.jxta.rendezvous.RendezVousManager, JxtaTimerHandler

This class implements a very simple RendezVous manager


Field Summary
static long PollDelay
           
 
Constructor Summary
RdvManager(net.jxta.peergroup.PeerGroup g)
           
 
Method Summary
 long requestConnection(net.jxta.document.Advertisement adv)
          This is called by the RendezVous service each time a new Peer is requesting a connection.
 void signal(JxtaTimer t)
          This implementation of Rendezvous Manager periodically pools peers and groups advertisements from other peers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PollDelay

public static final long PollDelay
Constructor Detail

RdvManager

public RdvManager(net.jxta.peergroup.PeerGroup g)
Method Detail

requestConnection

public long requestConnection(net.jxta.document.Advertisement adv)
This is called by the RendezVous service each time a new Peer is requesting a connection. The RendezVous 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 net.jxta.rendezvous.RendezVousManager

signal

public void signal(JxtaTimer t)
This implementation of Rendezvous Manager periodically pools peers and groups advertisements from other peers.
Specified by:
signal in interface JxtaTimerHandler
Tags copied from interface: JxtaTimerHandler
Parameters:
timer - a reference to the timer that has went off.

Project JXTA