|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.regions.RegionManager
public class RegionManager
| Nested Class Summary | |
|---|---|
static class |
RegionManager.Statistics
|
| Constructor Summary | |
|---|---|
RegionManager(XMLStore xmlstore)
|
|
RegionManager(XMLStore xmlstore,
RegionConfiguration conf)
|
|
| Method Summary | |
|---|---|
void |
addRootListener(ReferenceListener l)
Registers the specified ReferenceListener for receiving
LocalLocator events for roots. |
void |
close()
Closes the RegionManager and releases all ressources. |
void |
compact(boolean doComplete)
|
RegionConfiguration |
configuration()
|
void |
discriminate()
Forces brutal compaction of the store by running the Sharer continously until the store is fully
discriminated. |
void |
expunge()
Clears all cached soft references to data to conserve memory. |
void |
flush()
Persists the current writing Region and begins a new. |
Sharer |
getSharer()
|
boolean |
isDiscriminated()
|
SystemNode |
load(LocalLocator loc)
|
int |
numOfRegions()
|
void |
release()
Attempts to release all cached ressources held. |
void |
release(LocalLocator loc)
Removes a root previously added with retain(LocalLocator). |
void |
removeRootListener(ReferenceListener l)
Removes a ReferenceListener previously registered with
addRootListener(ReferenceListener). |
void |
retain(LocalLocator loc)
Adds a root permanently that must be explicitly removed using release(LocalLocator). |
LocalLocator |
save(SystemNode node)
|
long |
size()
Returns the on-disk file size of the store. |
RegionManager.Statistics |
statistics()
|
RegionManager.Statistics |
statistics(boolean isVerbose)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegionManager(XMLStore xmlstore)
throws IOException
IOException
public RegionManager(XMLStore xmlstore,
RegionConfiguration conf)
throws IOException
IOException| Method Detail |
|---|
public SystemNode load(LocalLocator loc)
throws IOException,
UnknownReferenceException
IOException
UnknownReferenceException
public LocalLocator save(SystemNode node)
throws IOException
IOException
public void flush()
throws IOException
Region and begins a new.
IOException
public void release()
throws IOException
Regions.
IOException
public void discriminate()
throws IOException
Sharer continously until the store is fully
discriminated. This will, of course,
not do well with concurrently executing applications.
IOException
public void compact(boolean doComplete)
throws IOException
IOExceptionpublic RegionConfiguration configuration()
public Sharer getSharer()
public void retain(LocalLocator loc)
throws UnknownReferenceException
release(LocalLocator).
UnknownReferenceException
public void release(LocalLocator loc)
throws UnknownReferenceException
retain(LocalLocator).
UnknownReferenceExceptionpublic void expunge()
public void addRootListener(ReferenceListener l)
ReferenceListener for receiving
LocalLocator events for roots.
public void removeRootListener(ReferenceListener l)
ReferenceListener previously registered with
addRootListener(ReferenceListener).
public long size()
throws IOException
statistics() for more detailed size information.
IOExceptionpublic int numOfRegions()
public boolean isDiscriminated()
public String toString()
toString in class Objectpublic RegionManager.Statistics statistics()
public RegionManager.Statistics statistics(boolean isVerbose)
public void close()
throws IOException
RegionManager and releases all ressources.
Any subsequent calls to methods will throw an IllegalStateException.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||