com.sleepycat.je
Class EnvironmentMutableConfig

java.lang.Object
  extended by com.sleepycat.je.EnvironmentMutableConfig
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
EnvironmentConfig

public class EnvironmentMutableConfig
extends Object
implements Cloneable

Javadoc for this public class is generated via the doc templates in the doc_src directory.


Field Summary
protected  long cacheSize
           
 
Constructor Summary
EnvironmentMutableConfig()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
EnvironmentMutableConfig(Properties properties)
          Used by EnvironmentConfig to construct from properties.
 
Method Summary
(package private)  void checkImmutablePropsForEquality(EnvironmentMutableConfig passedConfig)
          Check that the immutable values in the environment config used to open an environment match those in the config object saved by the underlying shared EnvironmentImpl.
protected  Object clone()
          Overrides Object.clone() to clone all properties, used by this class and EnvironmentConfig.
(package private)  EnvironmentMutableConfig cloneMutableConfig()
          Used by Environment to create a copy of the application supplied configuration.
(package private)  void copyHandlePropsTo(EnvironmentMutableConfig other)
          Copies the per-handle properties of this object to the given config object.
(package private)  void copyMutablePropsTo(EnvironmentMutableConfig toConfig)
          Copies all mutable props to the given config object.
(package private)  void fillInEnvironmentGeneratedProps(EnvironmentImpl envImpl)
          Fill in the properties calculated by the environment to the given config object.
 int getCachePercent()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 long getCacheSize()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 String getConfigParam(String paramName)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  boolean getLoadPropertyFile()
          For unit testing, to prevent loading of je.properties.
(package private)  int getNumExplicitlySetParams()
          Testing support
 boolean getTxnNoSync()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getTxnWriteNoSync()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  String getVal(ConfigParam param)
          Gets either the value stored in this configuration or the default value for this param.
 void setCachePercent(int percent)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setCacheSize(long totalBytes)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setConfigParam(String paramName, String value)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  void setLoadPropertyFile(boolean loadPropertyFile)
          For unit testing, to prevent loading of je.properties.
 void setTxnNoSync(boolean noSync)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setTxnWriteNoSync(boolean writeNoSync)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  void setVal(ConfigParam param, String val)
          Sets and validates the specified parameter.
(package private)  void setValidateParams(boolean validateParams)
           
 String toString()
           
(package private)  void validateProperties(Properties props)
          Validate a property bag passed in a construction time.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cacheSize

protected long cacheSize
Constructor Detail

EnvironmentMutableConfig

public EnvironmentMutableConfig()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


EnvironmentMutableConfig

EnvironmentMutableConfig(Properties properties)
                   throws IllegalArgumentException
Used by EnvironmentConfig to construct from properties.

Throws:
IllegalArgumentException
Method Detail

setTxnNoSync

public void setTxnNoSync(boolean noSync)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getTxnNoSync

public boolean getTxnNoSync()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setTxnWriteNoSync

public void setTxnWriteNoSync(boolean writeNoSync)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getTxnWriteNoSync

public boolean getTxnWriteNoSync()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setCacheSize

public void setCacheSize(long totalBytes)
                  throws IllegalArgumentException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
IllegalArgumentException

getCacheSize

public long getCacheSize()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setCachePercent

public void setCachePercent(int percent)
                     throws IllegalArgumentException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
IllegalArgumentException

getCachePercent

public int getCachePercent()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setConfigParam

public void setConfigParam(String paramName,
                           String value)
                    throws IllegalArgumentException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
IllegalArgumentException

getConfigParam

public String getConfigParam(String paramName)
                      throws IllegalArgumentException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
IllegalArgumentException

getVal

String getVal(ConfigParam param)
Gets either the value stored in this configuration or the default value for this param.


setVal

void setVal(ConfigParam param,
            String val)
      throws IllegalArgumentException
Sets and validates the specified parameter.

Throws:
IllegalArgumentException

setValidateParams

void setValidateParams(boolean validateParams)

validateProperties

void validateProperties(Properties props)
                  throws IllegalArgumentException
Validate a property bag passed in a construction time.

Throws:
IllegalArgumentException

checkImmutablePropsForEquality

void checkImmutablePropsForEquality(EnvironmentMutableConfig passedConfig)
                              throws IllegalArgumentException
Check that the immutable values in the environment config used to open an environment match those in the config object saved by the underlying shared EnvironmentImpl.

Throws:
IllegalArgumentException

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides Object.clone() to clone all properties, used by this class and EnvironmentConfig.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

cloneMutableConfig

EnvironmentMutableConfig cloneMutableConfig()
Used by Environment to create a copy of the application supplied configuration. Done this way to provide non-public cloning.


copyHandlePropsTo

void copyHandlePropsTo(EnvironmentMutableConfig other)
Copies the per-handle properties of this object to the given config object.


copyMutablePropsTo

void copyMutablePropsTo(EnvironmentMutableConfig toConfig)
Copies all mutable props to the given config object.


fillInEnvironmentGeneratedProps

void fillInEnvironmentGeneratedProps(EnvironmentImpl envImpl)
Fill in the properties calculated by the environment to the given config object.


setLoadPropertyFile

void setLoadPropertyFile(boolean loadPropertyFile)
For unit testing, to prevent loading of je.properties.


getLoadPropertyFile

boolean getLoadPropertyFile()
For unit testing, to prevent loading of je.properties.


getNumExplicitlySetParams

int getNumExplicitlySetParams()
Testing support


toString

public String toString()
Overrides:
toString in class Object


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.