|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.stores.AbstractXMLStore<R>
public abstract class AbstractXMLStore<R extends Reference>
A convenience class for implementing XMLStores.
| Method Summary | |
|---|---|
void |
close()
The method is used to let the XMLStore properly commit all
data to the underlying ressource, release resources, and so
forth. |
NameServer<R> |
getNameServer()
Returns the NameServer with the largest scope associated
with this XMLStore. |
Node |
load(R ref)
Loads XML data identified by a reference. |
R |
save(Node node)
Saves the XML data represented by the specified Node. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public R save(Node node)
throws IOException
XMLStoreNode.
The method returns a unique location independent
reference, which can be used to load the node, when needed.
save in interface XMLStore<R extends Reference>node - representing XML data in the form of semi-structured tree data
IOException - if an error occurs during disk, network, etc access
public Node load(R ref)
throws IOException,
UnknownReferenceException
XMLStoreNodes.
load in interface XMLStore<R extends Reference>ref - the Reference to the data
IOException - if an error occurs during disk, network, etc access
UnknownReferenceException - if the data referenced is not stored
in the XMLStore or the Reference is of
a type not supported by the XMLStorepublic NameServer<R> getNameServer()
XMLStoreNameServer with the largest scope associated
with this XMLStore. That is, an XMLStore that
stores data in a distributed setting should return a global
NameServer for the XMLStore network in which it participates
and not a local NameServer (even though it may also have
access to such an entity).
getNameServer in interface XMLStore<R extends Reference>
public void close()
throws IOException
XMLStoreXMLStore properly commit all
data to the underlying ressource, release resources, and so
forth. Once close has been issued on an XMLStore, the store
is no longer available for handling requests. Any subsequent
request to the store will result in an exception being
thrown. An XMLStore implementation has to ensure that
this happens.
close in interface XMLStore<R extends Reference>IOException - if it is not possible to properly close the storepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||