com.sleepycat.je.dbi
Class DbEnvPool

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

public class DbEnvPool
extends Object

Singleton collection of database environments.


Nested Class Summary
static class DbEnvPool.EnvironmentImplInfo
           
 
Method Summary
 void clear()
           
 DbEnvPool.EnvironmentImplInfo getEnvironment(File envHome, EnvironmentConfig config)
          If the environment is not open, open it.
 DbEnvPool.EnvironmentImplInfo getExistingEnvironment(File envHome)
           
static DbEnvPool getInstance()
          Access the singleton instance.
(package private)  void remove(File envHome)
          Remove a EnvironmentImpl from the pool because it's been closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DbEnvPool getInstance()
Access the singleton instance.


getEnvironment

public DbEnvPool.EnvironmentImplInfo getEnvironment(File envHome,
                                                    EnvironmentConfig config)
                                             throws DatabaseException
If the environment is not open, open it.

Throws:
DatabaseException

getExistingEnvironment

public DbEnvPool.EnvironmentImplInfo getExistingEnvironment(File envHome)
                                                     throws DatabaseException
Throws:
DatabaseException

remove

void remove(File envHome)
      throws DatabaseException
Remove a EnvironmentImpl from the pool because it's been closed.

Throws:
DatabaseException

clear

public void clear()


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