|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface defines the methods required in order for an object to be treated as a nameservice. In particular, a nameservice must provide a mechanism for creating names, associating them with particular physical addresses, and later updating or removing these bindings. A nameservice is used in conjunction with a request handler in order to implement communication between foundry nodes. Normally, request handler clients do not access the name service directly. Instead, a request handler proxy is used which ensures that the nameservice is accessed correctly and then nameservice entries remain consistent.
Name,
RequestHandler| Method Summary | |
void |
nsAddAddress(PhysicalAddress addr)
Add a new address for authoritative bindings. |
void |
nsClear(Name naum)
Instructs the nameservice to clear non-authoritative about the given name. |
Name |
nsGenerateName()
Request a fresh name from the name service. |
void |
nsInitialize(Scheduler S)
Initialize this nameservice instance. |
boolean |
nsLocal(Name namu,
PhysicalAddress localBind)
Requests the nameservice to determine whether or not the given name is bound locally to the given physical address. |
PhysicalAddress |
nsLookup(Name namu)
Requests the nameservice to resolve the binding of the given name. |
void |
nsRegister(Name namu,
PhysicalAddress addr)
Bind the given name to the given physical address. |
void |
nsRemove(Name namu,
PhysicalAddress addr)
Remove a binding between a name and a physical address. |
| Method Detail |
public void nsInitialize(Scheduler S)
S - A reference to the scheduler which should be
used to schedule nameservice threads.public void nsAddAddress(PhysicalAddress addr)
addr - A PhysicalAddress which may be used
for authoritative bindings.public Name nsGenerateName()
public void nsRegister(Name namu,
PhysicalAddress addr)
throws MalformedNameException,
NoSuchAddressException
namu - The Name instance to bind.addr - The PhysicalAddress which the name
argument should be bound to. Henceforth, this addr will
be a valid target for any messages sent to namu.
public void nsRemove(Name namu,
PhysicalAddress addr)
throws MalformedNameException,
NameNotFoundException,
NoSuchAddressException
namu - The Name to unbind.addr - The PhysicalAddress which should no
longer be associated with this name.
public PhysicalAddress nsLookup(Name namu)
throws MalformedNameException,
NameNotFoundException,
NoBindingException
namu - The Name instance to be resolved.
public boolean nsLocal(Name namu,
PhysicalAddress localBind)
throws MalformedNameException,
NoSuchAddressException
namu - The Name to be looked up.localBind - The PhysicalAddress which
should be verified as a local binding of the given name.
public void nsClear(Name naum)
throws MalformedNameException
namu - The Name for which
non-authoritative information should be cleared.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||