base.jdbs.network
Class PeerDiscoveryThread

java.lang.Object
  extended by java.util.Observable
      extended by base.jdbs.network.PeerDiscoveryThread
All Implemented Interfaces:
java.lang.Runnable

public class PeerDiscoveryThread
extends java.util.Observable
implements java.lang.Runnable

Author:
skunk

Field Summary
static int DISCOVERY_INTERVAL
           
static java.lang.String THREAD_NAME
           
 
Constructor Summary
PeerDiscoveryThread(net.jxta.peergroup.PeerGroup peerGroup)
           
 
Method Summary
 void addPeer(net.jxta.protocol.PeerAdvertisement peerAdvertisement, net.jxta.peergroup.PeerGroup peerGroup)
           
 JDBSPeer[] getPeer()
           
 net.jxta.peergroup.PeerGroup getPeerGroup()
           
 void run()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THREAD_NAME

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

DISCOVERY_INTERVAL

public static final int DISCOVERY_INTERVAL
See Also:
Constant Field Values
Constructor Detail

PeerDiscoveryThread

public PeerDiscoveryThread(net.jxta.peergroup.PeerGroup peerGroup)
Method Detail

getPeer

public JDBSPeer[] getPeer()

addPeer

public void addPeer(net.jxta.protocol.PeerAdvertisement peerAdvertisement,
                    net.jxta.peergroup.PeerGroup peerGroup)

run

public void run()
Specified by:
run in interface java.lang.Runnable

getPeerGroup

public net.jxta.peergroup.PeerGroup getPeerGroup()
Returns:
Returns the peerGroup.


Copyright © 2006 SF.net. All Rights Reserved.