|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.koala.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,
LocalLocator ref)
Bind the name to the value reference in the name server. |
void |
close()
Closes the NameServer releasing all resources. |
LocalLocator |
lookup(String docName)
Lookup the name in the name server. |
void |
rebind(String name,
LocalLocator oldr,
LocalLocator 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalNameServer(LocalXMLStore xmlstore)
throws IOException
IOException| Method Detail |
|---|
public void close()
throws IOException
NameServerNameServer releasing all resources.
Further method invocation on the NameServer are
illegal.
close in interface NameServer<LocalLocator>IOExceptionpublic LocalLocator lookup(String docName)
NameServer
lookup in interface NameServer<LocalLocator>docName - the name to be looked up
public void bind(String name,
LocalLocator ref)
throws IOException,
NameAlreadyBoundException
NameServer
bind in interface NameServer<LocalLocator>name - 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,
LocalLocator oldr,
LocalLocator newr)
throws IOException,
StaleReferenceException
NameServer
rebind in interface NameServer<LocalLocator>name - 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 | |||||||||