com.sleepycat.je.config
Class ConfigParam

java.lang.Object
  extended by com.sleepycat.je.config.ConfigParam
Direct Known Subclasses:
BooleanConfigParam, IntConfigParam, LongConfigParam, ShortConfigParam

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.


Field Summary
static String CONFIG_DELIM
           
(package private)  String name
           
 
Constructor Summary
ConfigParam(String configName, String configDefault, boolean mutable, String description)
           
 
Method Summary
 String getDefault()
           
 String getDescription()
           
 String getExtraDescription()
           
 String getName()
           
 boolean isMutable()
           
 void validate()
          Validate yourself.
 void validateValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_DELIM

public static final String CONFIG_DELIM
See Also:
Constant Field Values

name

String name
Constructor Detail

ConfigParam

ConfigParam(String configName,
            String configDefault,
            boolean mutable,
            String description)
      throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getName

public String getName()

getDescription

public String getDescription()

getExtraDescription

public String getExtraDescription()

getDefault

public String getDefault()

isMutable

public boolean isMutable()

validate

public void validate()
              throws IllegalArgumentException
Validate yourself.

Throws:
IllegalArgumentException

validateValue

public void validateValue(String value)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.