|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.koala.storage.StorageManager
public abstract class StorageManager
| Constructor Summary | |
|---|---|
StorageManager()
|
|
| Method Summary | |
|---|---|
abstract void |
addRootListener(LocatorListener l)
|
abstract LocalLocator |
asMemoryRoot(LocalLocator loc)
Returns a weak, in-memory root for a strong root. |
abstract void |
close()
|
abstract void |
flush()
|
static StorageManager |
instance(String name)
|
static StorageManager |
instance(String name,
StorageConfiguration config)
|
abstract SystemNode |
load(LocalLocator loc)
Loads a node with the specified LocalLocator. |
abstract SystemNode |
load(RelativeDualReference<Locator,LocalLocator> ref)
|
abstract void |
release(LocalLocator loc)
Releases a root that was previously retained. |
abstract void |
removeRootListener(LocatorListener l)
|
abstract void |
retain(LocalLocator loc)
Requests that a root be kept permanently alive. |
abstract LocalLocator |
save(SystemNode node)
Saves a node and returns a LocalLocator to it. |
abstract long |
size()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorageManager()
| Method Detail |
|---|
public static StorageManager instance(String name)
throws IOException
IOException
public static StorageManager instance(String name,
StorageConfiguration config)
throws IOException
IOException
public abstract SystemNode load(LocalLocator loc)
throws IOException
LocalLocator.
IOException
public abstract SystemNode load(RelativeDualReference<Locator,LocalLocator> ref)
throws IOException
load in interface Loader<RelativeDualReference<Locator,LocalLocator>,SystemNode>IOException
public abstract LocalLocator save(SystemNode node)
throws IOException
LocalLocator to it.
IOException
public abstract void flush()
throws IOException
IOException
public abstract void close()
throws IOException
IOException
public abstract long size()
throws IOException
IOExceptionpublic abstract void retain(LocalLocator loc)
public abstract void release(LocalLocator loc)
throws UnknownReferenceException
UnknownReferenceExceptionpublic abstract LocalLocator asMemoryRoot(LocalLocator loc)
public abstract void addRootListener(LocatorListener l)
public abstract void removeRootListener(LocatorListener l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||