Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Interface cornell.slk.jkernel.std.Repository

Source code
Implementing Classes:
RepositoryImpl

public interface Repository
extends Remote

Method Summary
java.lang.Object  bind(java.lang.String name, Capability cap)
bind adds a capability cap to a name server under a name.
java.lang.String[]  list()
list returns all the names present in the name service.
Capability  lookup(java.lang.String name)
lookup returns a capability associated with a given name or throws CapabilityNotBoundException.
void  unbind(java.lang.Object ticket)
unbind removes a binding identified by ticket (returned by a call to bind).
 

Method Detail

lookup

public Capability lookup(java.lang.String name) throws CapabilityNotBoundException, RemoteException
lookup returns a capability associated with a given name or throws CapabilityNotBoundException.


bind

public java.lang.Object bind(java.lang.String name,
                   Capability cap) throws CapabilityAlreadyBoundException, RemoteException
bind adds a capability cap to a name server under a name. CapabilityAlreadyBoundException is thrown in case the name is already bound to some other capability. The object returned is used for later removal of name from the list of bindings.


unbind

public void unbind(java.lang.Object ticket) throws CapabilityNotBoundException, RemoteException
unbind removes a binding identified by ticket (returned by a call to bind). CapabilityNotBoundException is thrown if the ticket does not correspond to any binding currently present in the name service.


list

public java.lang.String[] list()
list returns all the names present in the name service.


Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS