public class EnvironmentMutableConfig
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected long |
cacheSize |
protected java.util.Properties |
props
Note that in the implementation we choose not to extend Properties
in order to keep the configuration type safe.
|
| Constructor and Description |
|---|
EnvironmentMutableConfig()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone()
Overrides Object.clone() to clone all properties, used by this class and
EnvironmentConfig.
|
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.
|
java.lang.String |
getConfigParam(java.lang.String paramName)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
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(java.lang.String paramName,
java.lang.String value)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
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.
|
java.lang.String |
toString() |
protected long cacheSize
protected java.util.Properties props
public EnvironmentMutableConfig()
public void setTxnNoSync(boolean noSync)
public boolean getTxnNoSync()
public void setTxnWriteNoSync(boolean writeNoSync)
public boolean getTxnWriteNoSync()
public void setCacheSize(long totalBytes)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic long getCacheSize()
public void setCachePercent(int percent)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getCachePercent()
public void setConfigParam(java.lang.String paramName,
java.lang.String value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic java.lang.String getConfigParam(java.lang.String paramName)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Object