public class BooleanConfigParam extends ConfigParam
name
Constructor and Description |
---|
BooleanConfigParam(java.lang.String configName,
boolean defaultValue,
boolean mutable,
boolean forReplication)
Set a boolean parameter w/default.
|
Modifier and Type | Method and Description |
---|---|
void |
validateValue(java.lang.String value)
Make sure that value is a valid string for booleans.
|
getDefault, getName, isForReplication, isMultiValueParam, isMutable, multiValueParamName, mvParamIndex, setForReplication, toString
public BooleanConfigParam(java.lang.String configName, boolean defaultValue, boolean mutable, boolean forReplication)
configName
- defaultValue
- forReplication
- true if param is for replicationpublic void validateValue(java.lang.String value) throws java.lang.IllegalArgumentException
validateValue
in class ConfigParam
java.lang.IllegalArgumentException
- via XxxConfig.setXxx methods and
XxxConfig(Properties) ctor.Copyright (c) 2004-2012 Oracle. All rights reserved.