com.sleepycat.je.dbi
Class DbConfigManager

java.lang.Object
  extended by com.sleepycat.je.dbi.DbConfigManager

public class DbConfigManager
extends Object

DbConfigManager holds the configuration parameters for an environment.


Constructor Summary
DbConfigManager(EnvironmentConfig config)
          Todo: should this even be a separate class?
 
Method Summary
 String get(ConfigParam configParam)
          Get this parameter from the environment wide configuration settings.
 String get(String configParamName)
          Get this parameter from the environment wide configuration settings.
 boolean getBoolean(BooleanConfigParam configParam)
          Get this parameter from the environment wide configuration settings.
 EnvironmentConfig getEnvironmentConfig()
           
 int getInt(IntConfigParam configParam)
          Get this parameter from the environment wide configuration settings.
 long getLong(LongConfigParam configParam)
          Get this parameter from the environment wide configuration settings.
 short getShort(ShortConfigParam configParam)
          Get this parameter from the environment wide configuration settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbConfigManager

public DbConfigManager(EnvironmentConfig config)
                throws DbConfigException
Todo: should this even be a separate class?

Throws:
DbConfigException
Method Detail

getEnvironmentConfig

public EnvironmentConfig getEnvironmentConfig()

get

public String get(ConfigParam configParam)
           throws IllegalArgumentException
Get this parameter from the environment wide configuration settings.

Parameters:
configParam -
Returns:
default for param if param wasn't explicitly set
Throws:
IllegalArgumentException

get

public String get(String configParamName)
           throws IllegalArgumentException
Get this parameter from the environment wide configuration settings.

Parameters:
configParam -
Returns:
default for param if param wasn't explicitly set
Throws:
IllegalArgumentException

getBoolean

public boolean getBoolean(BooleanConfigParam configParam)
                   throws DatabaseException
Get this parameter from the environment wide configuration settings.

Parameters:
configParam -
Returns:
default for param if it wasn't explicitly set.
Throws:
DatabaseException

getShort

public short getShort(ShortConfigParam configParam)
               throws DatabaseException
Get this parameter from the environment wide configuration settings.

Parameters:
configParam -
Returns:
default for param if it wasn't explicitly set.
Throws:
DatabaseException

getInt

public int getInt(IntConfigParam configParam)
           throws DatabaseException
Get this parameter from the environment wide configuration settings.

Parameters:
configParam -
Returns:
default for param if it wasn't explicitly set.
Throws:
DatabaseException

getLong

public long getLong(LongConfigParam configParam)
             throws DatabaseException
Get this parameter from the environment wide configuration settings.

Parameters:
configParam -
Returns:
default for param if it wasn't explicitly set
Throws:
DatabaseException


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