All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cmu.owl.so.nameservice.NameServerImpl

edu.cmu.owl.so.nameservice.NameServerImpl

public class NameServerImpl
implements NameServer
This class implements the functionality of the NameServer


Variable Index

 o KEEPALIVE_FREQUENCY
The frequency, in minutes, at which the NameServer will try and "ping" the listed Nameable objects.

Constructor Index

 o NameServerImpl()
default contructor: just creates the hashtables

Method Index

 o bindName(String, String)
This method allows the binding of a string to a string
 o bindNameable(Object, Nameable)
This method allows the binding of a key to a Nameable object
 o lookupName(String)
this is the actual lookup procedure on the server
 o lookupNameable(Object)
 o main(String[])
Start the naming server
 o rebindName(String, String)
this method allows the rebinding of a name instead of an unbind/bind combination
 o rebindNameable(Object, Nameable)
this method allows the rebinding of a key instead of an unbind/bind combination
 o unBindName(String)
this method allows the removal of a binding to a name
 o unBindNameable(Object)
this method allows you to remove a binding

Variables

 o KEEPALIVE_FREQUENCY
 public static final int KEEPALIVE_FREQUENCY
The frequency, in minutes, at which the NameServer will try and "ping" the listed Nameable objects.

Constructors

 o NameServerImpl
 public NameServerImpl() throws RemoteException
default contructor: just creates the hashtables

Methods

 o bindName
 public void bindName(String name,
                      String information) throws RemoteException, AlreadyBoundException
This method allows the binding of a string to a string

 o rebindName
 public void rebindName(String name,
                        String newInformation) throws RemoteException
this method allows the rebinding of a name instead of an unbind/bind combination

 o unBindName
 public void unBindName(String name) throws RemoteException, NoBindingException
this method allows the removal of a binding to a name

 o lookupName
 public String lookupName(String name) throws RemoteException, NoBindingException
this is the actual lookup procedure on the server

 o bindNameable
 public void bindNameable(Object key,
                          Nameable target) throws RemoteException, AlreadyBoundException, NotAccessibleException
This method allows the binding of a key to a Nameable object

 o rebindNameable
 public void rebindNameable(Object key,
                            Nameable newTarget) throws RemoteException, NotAccessibleException
this method allows the rebinding of a key instead of an unbind/bind combination

 o unBindNameable
 public void unBindNameable(Object key) throws RemoteException, NoBindingException
this method allows you to remove a binding

 o lookupNameable
 public Nameable lookupNameable(Object key) throws RemoteException, NoBindingException
 o main
 public static void main(String arguments[])
Start the naming server


All Packages  Class Hierarchy  This Package  Previous  Next  Index