KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Run > CCNS > ConnectorCacheNS


1 /* $Id: ConnectorCacheNS.java,v 1.3 2004/05/20 14:23:52 bures Exp $ */
2
3 /*
4  * Remote interface for connector cache name server
5  *
6  * Created on January 8, 2003, 4:31 PM
7  */

8
9 package SOFA.SOFAnode.Run.CCNS;
10
11 import java.rmi.Remote JavaDoc;
12 import java.rmi.RemoteException JavaDoc;
13
14 /** Remote interface for registry of connector mangled names.
15  *
16  * @author Tomas Bures
17  * @version 1.0
18  */

19 public interface ConnectorCacheNS extends Remote JavaDoc {
20     
21     /** Returns short unique tag for long connector name. If the entry is not present in registry, it is automaticaly added and the unique tag is generated.
22      * @param name Long connector name
23      * @throws RemoteException
24      * @return Short unique tag
25      */

26     public String JavaDoc getHashByName(java.lang.String JavaDoc name) throws RemoteException JavaDoc;
27     /** Returns long connector name for the short unique tag. If the entry is not present in registry, <code>null</code> is returned.
28      * @param name Unique short tag
29      * @throws RemoteException
30      * @return Long connector name
31      */

32     public String JavaDoc getNameByHash(java.lang.String JavaDoc hash) throws RemoteException JavaDoc;
33     /** Returns short unique tag for long connector name. If the entry is not present in registry, <code>null</code> is returned.
34      * @param name Long connector name
35      * @throws RemoteException
36      * @return Short unique tag
37      *
38      * @author Petr Hnetynka
39      */

40     public String JavaDoc getHashByName2(java.lang.String JavaDoc name) throws RemoteException JavaDoc;
41 }
42
Popular Tags