|
|||||||||
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
|
protected Properties |
props
Note that in the implementation we choose not to extend Properties in order to keep the configuration type safe. |
(package private) boolean |
validateParams
Internal boolean that says whether or not to validate params. |
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 |
(package private) Properties |
getProps()
|
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. |
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 |
setValidateParams(boolean validateParams)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long cacheSize
protected Properties props
boolean validateParams
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
void setValidateParams(boolean validateParams)
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)
Properties getProps()
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 |