base.jdbs.network
Class NetworkManager
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.