KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > mcast > DiscoveryListener


1 package org.sapia.ubik.mcast;
2
3 import org.sapia.ubik.net.ServerAddress;
4
5
6 /**
7  * Listens for the discovery of new nodes in a given event channel.
8  *
9  * @author Yanick Duchesne
10  * <dl>
11  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public interface DiscoveryListener {
17   /**
18    * This method is called by the <code>EventChannel</code> to which
19    * this instance belongs.
20    *
21    * @param addr a <code>ServerAddress</code> that corresponds to the address physical
22    * address of the discovered node.
23    *
24    * @param discovered the <code>RemoteEvent</code> that is received from the
25    * discovered event channel node.
26    */

27   public void onDiscovery(ServerAddress addr, RemoteEvent evt);
28 }
29
Popular Tags