|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.EnvironmentMutableConfig
public class EnvironmentMutableConfig
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 |
---|
protected long cacheSize
Constructor Detail |
---|
public EnvironmentMutableConfig()
EnvironmentMutableConfig(Properties properties) throws IllegalArgumentException
IllegalArgumentException
Method Detail |
---|
public void setTxnNoSync(boolean noSync)
public boolean getTxnNoSync()
public void setTxnWriteNoSync(boolean writeNoSync)
public boolean getTxnWriteNoSync()
public void setCacheSize(long totalBytes) throws IllegalArgumentException
IllegalArgumentException
public long getCacheSize()
public void setCachePercent(int percent) throws IllegalArgumentException
IllegalArgumentException
public int getCachePercent()
public void setConfigParam(String paramName, String value) throws IllegalArgumentException
IllegalArgumentException
public String getConfigParam(String paramName) throws IllegalArgumentException
IllegalArgumentException
String getVal(ConfigParam param)
void setVal(ConfigParam param, String val) throws IllegalArgumentException
IllegalArgumentException
void setValidateParams(boolean validateParams)
void validateProperties(Properties props) throws IllegalArgumentException
IllegalArgumentException
void checkImmutablePropsForEquality(EnvironmentMutableConfig passedConfig) throws IllegalArgumentException
IllegalArgumentException
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
EnvironmentMutableConfig cloneMutableConfig()
void copyHandlePropsTo(EnvironmentMutableConfig other)
void copyMutablePropsTo(EnvironmentMutableConfig toConfig)
void fillInEnvironmentGeneratedProps(EnvironmentImpl envImpl)
void setLoadPropertyFile(boolean loadPropertyFile)
boolean getLoadPropertyFile()
int getNumExplicitlySetParams()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |