Class AdhocPeerRdvService
package: src.net.jxta.impl.rendezvous.adhoc
net.jxta.impl.rendezvous.RendezVousServiceProvider
  |
  +--net.jxta.impl.rendezvous.adhoc.AdhocPeerRdvService
public class AdhocPeerRdvService
Extends:
net.jxta.impl.rendezvous.RendezVousServiceProvider
A JXTA net.jxta.rendezvous.RendezvousService implementation which implements the ad hoc portion of the standard JXTA Rendezvous Protocol (RVP).
See Also:
net.jxta.rendezvous.RendezvousService,  
Field Summary
private final static int
   Default Maximum TTL.
 
private final static transient Logger
   Log4J Logger
 
Constructor Summary
public
   Constructor
 
Method Summary
public void
challengeRendezVous(ID peer, long delay)
   {@inheritDoc}
 
public void
connectToRendezVous(EndpointAddress addr)
   {@inheritDoc}
 
public void
connectToRendezVous(PeerAdvertisement adv)
   {@inheritDoc}
 
public void
   {@inheritDoc}
 
public Vector
   {@inheritDoc}
 
public Enumeration
   {@inheritDoc}
 
public Enumeration
   {@inheritDoc}
 
public Enumeration
   {@inheritDoc}
 
public boolean
   {@inheritDoc}
 
public void
propagate(Enumeration destPeerIDs, Message msg, String serviceName, String serviceParam, int ttl)
   {@inheritDoc}
 
public void
propagate(Message msg, String serviceName, String serviceParam, int ttl)
   {@inheritDoc}
 
public void
propagateInGroup(Message msg, String serviceName, String serviceParam, int ttl)
   {@inheritDoc}
 
public void
propagateToNeighbors(Message msg, String serviceName, String serviceParam, int ttl)
   {@inheritDoc}
 
protected void
repropagate(Message msg, RendezVousPropagateMessage propHdr, String serviceName, String serviceParam)
   {@inheritDoc}
 
public void
setChoiceDelay(long delay)
   {@inheritDoc}
 
protected int
startApp(String arg)
   {@inheritDoc}
 
protected synchronized void
   {@inheritDoc}
 
public void
walk(Vector destPeerIDs, Message msg, String serviceName, String serviceParam, int ttl)
   {@inheritDoc}
 
public void
walk(Message msg, String serviceName, String serviceParam, int ttl)
   {@inheritDoc}
 
Field Detail
DEFAULT_MAX_TTL
private final static int DEFAULT_MAX_TTL = 2
Default Maximum TTL. This is minimum needed to bridge networks.

LOG
private final static transient Logger LOG = Logger.getLogger(AdhocPeerRdvService.class.getName())
Log4J Logger
transient
Constructor Detail
AdhocPeerRdvService
public AdhocPeerRdvService(PeerGroup g, RendezVousServiceImpl rdvService)
Constructor
Parameters:
g Description of Parameter
sadv Description of Parameter
Method Detail
challengeRendezVous
public void challengeRendezVous(ID peer, long delay)
{@inheritDoc}

connectToRendezVous
public void connectToRendezVous(PeerAdvertisement adv)
{@inheritDoc}
Throws:
IOException

connectToRendezVous
public void connectToRendezVous(EndpointAddress addr)
{@inheritDoc}
Throws:
IOException

disconnectFromRendezVous
public void disconnectFromRendezVous(ID peerId)
{@inheritDoc}

getConnectedPeerIDs
public Vector getConnectedPeerIDs()
{@inheritDoc}

getConnectedPeers
public Enumeration getConnectedPeers()
{@inheritDoc}

getConnectedRendezVous
public Enumeration getConnectedRendezVous()
{@inheritDoc}

getDisconnectedRendezVous
public Enumeration getDisconnectedRendezVous()
{@inheritDoc}

isConnectedToRendezVous
public boolean isConnectedToRendezVous()
{@inheritDoc}

propagate
public void propagate(Message msg, String serviceName, String serviceParam, int ttl)
{@inheritDoc}
Throws:
IOException

propagate
public void propagate(Enumeration destPeerIDs, Message msg, String serviceName, String serviceParam, int ttl)
{@inheritDoc}

propagateInGroup
public void propagateInGroup(Message msg, String serviceName, String serviceParam, int ttl)
{@inheritDoc}
Throws:
IOException

propagateToNeighbors
public void propagateToNeighbors(Message msg, String serviceName, String serviceParam, int ttl)
{@inheritDoc}
Throws:
IOException

repropagate
protected void repropagate(Message msg, RendezVousPropagateMessage propHdr, String serviceName, String serviceParam)
{@inheritDoc}

setChoiceDelay
public void setChoiceDelay(long delay)
{@inheritDoc}

startApp
protected int startApp(String arg)
{@inheritDoc}

stopApp
protected synchronized void stopApp()
{@inheritDoc}

walk
public void walk(Vector destPeerIDs, Message msg, String serviceName, String serviceParam, int ttl)
{@inheritDoc}
Throws:
IOException

walk
public void walk(Message msg, String serviceName, String serviceParam, int ttl)
{@inheritDoc}
Throws:
IOException