|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.nameserver.LocalNameServer
public class LocalNameServer
A NameServer for local use only. A LocalNameServer is
associated with a specific XMLStore and will ensure that the
XMLStore retains References bound and releases
old rebound References.
| Constructor Summary | |
|---|---|
LocalNameServer(LocalXMLStore xmlstore)
|
|
| Method Summary | |
|---|---|
void |
bind(String name,
Reference ref)
Bind the name to the value reference in the name server. |
Reference |
lookup(String docName)
Lookup the name in the name server. |
void |
rebind(String name,
Reference oldr,
Reference newr)
Rebind the name to the value reference in the name server if the name is currently bound to the specified value reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalNameServer(LocalXMLStore xmlstore)
throws IOException
IOException| Method Detail |
|---|
public Reference lookup(String docName)
NameServer
lookup in interface NameServerdocName - the name to be looked up
public void bind(String name,
Reference ref)
throws IOException,
NameAlreadyBoundException
NameServer
bind in interface NameServername - the name to be boundref - the reference to bind it to
IOException
NameAlreadyBoundException - if the name is
already bound (to a different value reference).
public void rebind(String name,
Reference oldr,
Reference newr)
throws IOException,
StaleReferenceException
NameServer
rebind in interface NameServername - the name to be boundoldr - the reference to which name is currently boundnewr - the reference to bind it to
IOException
StaleReferenceException - if the name is
bound to something different from oldRef.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||