org.planx.xmlstore.koala.storage
Class StorageConfiguration

java.lang.Object
  extended by org.planx.xmlstore.koala.storage.StorageConfiguration

public class StorageConfiguration
extends Object

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

policyFactory

public PolicyFactory policyFactory
Default is PolicyFactory.


isSharerEnabled

public boolean isSharerEnabled
Default is true.


sharerPeriod

public long sharerPeriod
The number of milli seconds between sharer invocations.

Default is 10000 ms.


utilization

public float utilization
A factor between 0 and 1 indicating how much of a segment must always contain live data. If less than this factor is utilized the sharer will copy the live data to a new segment (achieving 100% utilization).


segmentSize

public long segmentSize
The preferred size of segments. The actual size of a segment may vary.


useSoftNodeCache

public boolean useSoftNodeCache
Whether to use weak or soft references in the node cache (nodes loaded into memory). If true soft references will be used.

Default is false.


useSoftSegmentCache

public boolean useSoftSegmentCache
Whether to use weak or soft references in the segment cache (segments cached in memory). If 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.


doDebug

public boolean doDebug
Constructor Detail

StorageConfiguration

public StorageConfiguration()


Copyright © 2004-2005 Plan-X. All Rights Reserved.