KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > server > ConnectionListener


1 package org.sapia.ubik.rmi.server;
2
3 import org.sapia.ubik.net.ServerAddress;
4
5
6 /**
7  * This interface defines callbacks pertaining to remote host lifecycle.
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 ConnectionListener {
17   /**
18    * This method is called when a remote host has closed its connection to the server.
19    *
20    * @param addr the <code>ServerAddress</code> of the server whose connection has been closed.
21    */

22   public void onConnectionClosed(ServerAddress addr);
23
24   /**
25    * This method is called when a remote host opens its connection to the server.
26    *
27    * @param addr the <code>ServerAddress</code> of the server whose connection has just been opened.
28    */

29   public void onConnectionCreated(ServerAddress addr);
30 }
31
Popular Tags