KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.sapia.ubik.rmi.server;
2
3 import java.rmi.RemoteException JavaDoc;
4
5 import org.sapia.ubik.net.ServerAddress;
6
7
8 /**
9  * Specifies the behavior of Ubik RMI server implementations.
10  * Allows to implement different types of servers.
11  *
12  * @author Yanick Duchesne
13  * <dl>
14  * <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>
15  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
16  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
17  * </dl>
18  */

19 public interface Server {
20   /**
21    * Returns this instance's address.
22    *
23    * a <code>ServerAddress</code>.
24    */

25   public ServerAddress getServerAddress();
26
27   /***
28    * Starts this server - this method should not block infinitely.
29    *
30    * @throws RemoteException if a problem occurs while starting up.
31    */

32   public void start() throws RemoteException JavaDoc;
33
34   /**
35    * Closes this server, which cleanly shuts down.
36    */

37   public void close();
38 }
39
Popular Tags