All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface edu.cmu.owl.so.nameservice.NameServer

public interface interface NameServer
This interface provides a simple naming service to two types of objects.
  1. Strings
  2. Remote objects which implement the

    See Also:
    Nameable, bindNameable

    Method Index

     o bindName(String, String)
    This method stores a mapping between the name and the information.
     o bindNameable(Object, Nameable)
    This method stores a mapping between the key and a
     o lookupName(String)
    This method looks up a binding on the server
     o lookupNameable(Object)
    This method looks up a binding on the server
     o rebindName(String, String)
    This method allows atomic modification of a previously bound name.
     o rebindNameable(Object, Nameable)
    This method allows atomic modification of a previously bound name.
     o unBindName(String)
    This method removes a binding from the server.
     o unBindNameable(Object)
    This method removes a binding from the server.

    Methods

     o bindName
     public abstract void bindName(String name,
                                   String information) throws RemoteException, AlreadyBoundException
    
    This method stores a mapping between the name and the information. An example of usage for this would be to map a help file to a URL. Specifically if a particular help file called "Main Help" is constantly changing and being moved around, then it could be mapped, using the naming service, to a particular URL (say, "http://www.cs.cmu.edu/~freddy/class/owl/mainhelp.html") This is most useful for debugging purposes where files and servers may exist on any of a number of machines.

     o rebindName
     public abstract void rebindName(String name,
                                     String newInformation) throws RemoteException
    
    This method allows atomic modification of a previously bound name. This is preferable to the sequence of: 1) unBind(), 2) bind() since rebind is atomic.

     o unBindName
     public abstract void unBindName(String name) throws RemoteException, NoBindingException
    
    This method removes a binding from the server.

     o lookupName
     public abstract String lookupName(String name) throws RemoteException, NoBindingException
    
    This method looks up a binding on the server

     o bindNameable
     public abstract void bindNameable(Object key,
                                       Nameable target) throws RemoteException, AlreadyBoundException, NotAccessibleException
    
    This method stores a mapping between the key and a

    See Also:
    Nameable, Nameable
     o rebindNameable
     public abstract void rebindNameable(Object key,
                                         Nameable newTarget) throws RemoteException, NotAccessibleException
    
    This method allows atomic modification of a previously bound name. This is preferable to the sequence of: 1) unBind(), 2) bind() since rebind is atomic.

     o unBindNameable
     public abstract void unBindNameable(Object key) throws RemoteException, NoBindingException
    
    This method removes a binding from the server.

     o lookupNameable
     public abstract Nameable lookupNameable(Object key) throws RemoteException, NoBindingException
    
    This method looks up a binding on the server


    All Packages  Class Hierarchy  This Package  Previous  Next  Index