|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.koala.storage.StorageConfiguration
public class StorageConfiguration
Configuration parameters for the storage system. Change the value of fields to adapt the default parameters.
| Field Summary | |
|---|---|
boolean |
doDebug
|
boolean |
isSharerEnabled
Default is true. |
PolicyFactory |
policyFactory
Default is PolicyFactory. |
long |
segmentSize
The preferred size of segments. |
long |
sharerPeriod
The number of milli seconds between sharer invocations. |
boolean |
useSoftNodeCache
Whether to use weak or soft references in the node cache (nodes loaded into memory). |
boolean |
useSoftSegmentCache
Whether to use weak or soft references in the segment cache (segments cached in memory). |
float |
utilization
A factor between 0 and 1 indicating how much of a segment must always contain live data. |
| Constructor Summary | |
|---|---|
StorageConfiguration()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public PolicyFactory policyFactory
PolicyFactory.
public boolean isSharerEnabled
true.
public long sharerPeriod
Default is 10000 ms.
public float utilization
public long segmentSize
public boolean useSoftNodeCache
true soft references will be used.
Default is false.
public boolean useSoftSegmentCache
true soft references will
be used. Note, that once a load from a segment is completed
the segment is no longer referenced and thus, if using weak references,
subsequent loads from the same segment are likely to load the segment
from disk again.
Default is true.
public boolean doDebug
| Constructor Detail |
|---|
public StorageConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||