|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.dbi.DbEnvPool
public class DbEnvPool
Singleton collection of environments. Responsible for environment open and close, supporting this from multiple threads by synchronizing on the pool. When synchronizing on two or more of the following objects the synchronization order must be as follows. Synchronization is not performed in constructors, of course, because no other thread can access the object. Synchronization order: Environment, DbEnvPool, EnvironmentImpl, Evictor Environment ctor NOT synchronized calls DbEnvPool.getEnvironment synchronized creates new EnvironmentImpl NOT synchronized calls RecoveryManager.recover,buildTree NOT synchronized calls Evictor.addEnvironment synchronized EnvironmentImpl.reinit NOT synchronized calls DbEnvPool.reinitEnvironment synchronized calls EnvironmentImpl.doReinit synchronized calls RecoveryManager.recover,buildTree NOT synchronized calls Evictor.addEnvironment synchronized Environment.close synchronized calls EnvironmentImpl.close NOT synchronized calls DbEnvPool.closeEnvironment synchronized calls EnvironmentImpl.doClose synchronized calls Evictor.removeEnvironment synchronized Environment.setMutableConfig synchronized calls EnvironmentImpl.setMutableConfig NOT synchronized calls DbEnvPool.setMutableConfig synchronized calls EnvironmentImpl.doSetMutableConfig synchronized
Method Summary | |
---|---|
void |
clear()
For unit testing only. |
EnvironmentImpl |
getEnvironment(java.io.File envHome,
EnvironmentConfig config,
boolean checkImmutableParams,
boolean openIfNeeded,
boolean replicationIntended)
Find a single environment, used by Environment handles and by command line utilities. |
static DbEnvPool |
getInstance()
Access the singleton instance. |
int |
getNSharedCacheEnvironments()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DbEnvPool getInstance()
public int getNSharedCacheEnvironments()
public EnvironmentImpl getEnvironment(java.io.File envHome, EnvironmentConfig config, boolean checkImmutableParams, boolean openIfNeeded, boolean replicationIntended) throws DatabaseException
DatabaseException
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |