org.planx.xmlstore.regions
Class RegionConfiguration

java.lang.Object
  extended by org.planx.xmlstore.regions.RegionConfiguration

public class RegionConfiguration
extends Object


Field Summary
 int CACHE_SIZE
          Maximum number of regions to keep in the memory cache.
 boolean DO_SHARE_NEW
          If true new regions will be compacted before saving.
 boolean ENABLE_SHARER
          If true the sharer will run as a background thread.
 int POLICY
          If POLICY_INSTANCE is null the value of a default policy as defined in the static fields of this class.
static int POLICY_FIRST
           
 CanonicPolicy POLICY_INSTANCE
          An implementation of a canonical node chooseing policy.
static int POLICY_LEAST_INTER_REGION
           
 int REGION_SIZE
          Minimum region size in bytes.
 long SHARER_PERIOD
          If the sharer is enabled, the number of milli seconds between invocations.
 boolean USE_HASH_SHARER
          If true a hash sharer will be used instead of MSD.
 
Constructor Summary
RegionConfiguration()
           
 
Method Summary
static RegionConfiguration environmentConfiguration()
          Returns a RegionConfiguration with values of fields filled in from environment properties with corresponding names.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POLICY_FIRST

public static final int POLICY_FIRST
See Also:
Constant Field Values

POLICY_LEAST_INTER_REGION

public static final int POLICY_LEAST_INTER_REGION
See Also:
Constant Field Values

REGION_SIZE

public int REGION_SIZE
Minimum region size in bytes.


CACHE_SIZE

public int CACHE_SIZE
Maximum number of regions to keep in the memory cache. Must minimum be 2, but should rather be more.


USE_HASH_SHARER

public boolean USE_HASH_SHARER
If true a hash sharer will be used instead of MSD.


DO_SHARE_NEW

public boolean DO_SHARE_NEW
If true new regions will be compacted before saving.


ENABLE_SHARER

public boolean ENABLE_SHARER
If true the sharer will run as a background thread.


SHARER_PERIOD

public long SHARER_PERIOD
If the sharer is enabled, the number of milli seconds between invocations.


POLICY_INSTANCE

public CanonicPolicy POLICY_INSTANCE
An implementation of a canonical node chooseing policy. Set to null to choose using POLICY instead.


POLICY

public int POLICY
If POLICY_INSTANCE is null the value of a default policy as defined in the static fields of this class.

Constructor Detail

RegionConfiguration

public RegionConfiguration()
Method Detail

environmentConfiguration

public static RegionConfiguration environmentConfiguration()
Returns a RegionConfiguration with values of fields filled in from environment properties with corresponding names.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.