base.jdbs.network
Class NetworkManager

java.lang.Object
  extended by base.jdbs.network.NetworkManager
All Implemented Interfaces:
java.util.EventListener, net.jxta.rendezvous.RendezvousListener

public class NetworkManager
extends java.lang.Object
implements net.jxta.rendezvous.RendezvousListener


Field Summary
static boolean AUTO_RENDEZVOUS
           
static java.lang.String JDBS_GROUP_DESCRIPTION
           
static java.lang.String JDBS_GROUP_NAME
           
static int RENDEZVOUS_CONNECTION_TIMEOUT
           
static int RENDEZVOUS_PERIOD
           
 
Method Summary
static NetworkManager getInstance()
           
 net.jxta.peergroup.PeerGroup getJdbsPeerGroup()
           
 net.jxta.protocol.PeerAdvertisement getLocalPeer()
           
 PeerDiscoveryThread getPeerDiscoveryThread()
           
static void main(java.lang.String[] args)
           
 void rendezvousEvent(net.jxta.rendezvous.RendezvousEvent event)
          rendezvousEvent the rendezvous event
 void waitForRendezvousConncection(net.jxta.rendezvous.RendezVousService rendezVousService, long timeout)
          Blocks until a connection to rendezvous node occurs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JDBS_GROUP_NAME

public static final java.lang.String JDBS_GROUP_NAME
See Also:
Constant Field Values

JDBS_GROUP_DESCRIPTION

public static final java.lang.String JDBS_GROUP_DESCRIPTION
See Also:
Constant Field Values

AUTO_RENDEZVOUS

public static final boolean AUTO_RENDEZVOUS
See Also:
Constant Field Values

RENDEZVOUS_PERIOD

public static final int RENDEZVOUS_PERIOD
See Also:
Constant Field Values

RENDEZVOUS_CONNECTION_TIMEOUT

public static final int RENDEZVOUS_CONNECTION_TIMEOUT
See Also:
Constant Field Values
Method Detail

getInstance

public static NetworkManager getInstance()

main

public static void main(java.lang.String[] args)

getLocalPeer

public net.jxta.protocol.PeerAdvertisement getLocalPeer()
Returns:
Returns the localPeer.

getPeerDiscoveryThread

public PeerDiscoveryThread getPeerDiscoveryThread()
Returns:
Returns the peerDiscoveryThread.

waitForRendezvousConncection

public void waitForRendezvousConncection(net.jxta.rendezvous.RendezVousService rendezVousService,
                                         long timeout)
Blocks until a connection to rendezvous node occurs

Parameters:
timeout - timeout in milliseconds

rendezvousEvent

public void rendezvousEvent(net.jxta.rendezvous.RendezvousEvent event)
rendezvousEvent the rendezvous event

Specified by:
rendezvousEvent in interface net.jxta.rendezvous.RendezvousListener
Parameters:
event - rendezvousEvent

getJdbsPeerGroup

public net.jxta.peergroup.PeerGroup getJdbsPeerGroup()
Returns:
Returns the jdbsPeerGroup.


Copyright © 2006 SF.net. All Rights Reserved.