com.sleepycat.je.config
Class ConfigParam
java.lang.Object
com.sleepycat.je.config.ConfigParam
- Direct Known Subclasses:
- BooleanConfigParam, IntConfigParam, LongConfigParam
public class ConfigParam
- extends Object
A ConfigParam embodies the metatdata about a JE configuration parameter:
the parameter name, default value, and a validation method.
Validation can be done in the scope of this parameter, or as a function of
other parameters.
CONFIG_DELIM
public static final String CONFIG_DELIM
- See Also:
- Constant Field Values
name
protected String name
ConfigParam
public ConfigParam(String configName,
String configDefault,
boolean mutable,
boolean forReplication,
String description)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getName
public String getName()
getDescription
public String getDescription()
getExtraDescription
public String getExtraDescription()
getDefault
public String getDefault()
isMutable
public boolean isMutable()
isForReplication
public boolean isForReplication()
setForReplication
public void setForReplication(boolean forReplication)
validate
public void validate()
throws IllegalArgumentException
- Validate yourself.
- Throws:
IllegalArgumentException
validateValue
public void validateValue(String value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2004,2008 Oracle. All rights reserved.