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; 12 import java.rmi.RemoteException; 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 { 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 getHashByName(java.lang.String name) throws RemoteException; 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 getNameByHash(java.lang.String hash) throws RemoteException; 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 getHashByName2(java.lang.String name) throws RemoteException; 41 } 42