base
Class DiscoveryDemo

java.lang.Object
  extended by base.DiscoveryDemo
All Implemented Interfaces:
java.lang.Runnable, java.util.EventListener, net.jxta.discovery.DiscoveryListener

public class DiscoveryDemo
extends java.lang.Object
implements java.lang.Runnable, net.jxta.discovery.DiscoveryListener


Constructor Summary
DiscoveryDemo()
           
 
Method Summary
 void discoveryEvent(net.jxta.discovery.DiscoveryEvent ev)
          by implementing DiscoveryListener we must define this method to deal to discovery responses
static void main(java.lang.String[] args)
           
 void run()
          This thread loops forever discovering peers every minute, and displaying the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryDemo

public DiscoveryDemo()
Method Detail

run

public void run()
This thread loops forever discovering peers every minute, and displaying the results.

Specified by:
run in interface java.lang.Runnable

discoveryEvent

public void discoveryEvent(net.jxta.discovery.DiscoveryEvent ev)
by implementing DiscoveryListener we must define this method to deal to discovery responses

Specified by:
discoveryEvent in interface net.jxta.discovery.DiscoveryListener

main

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


Copyright © 2006 SF.net. All Rights Reserved.