public class DbEnvPool extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
For unit testing only.
|
Collection<EnvironmentImpl> |
getEnvImpls() |
EnvironmentImpl |
getEnvironment(File envHome,
EnvironmentConfig config,
boolean checkImmutableParams,
RepConfigProxy repConfigProxy)
Find a single environment, used by Environment handles and by command
line utilities.
|
static DbEnvPool |
getInstance()
Access the singleton instance.
|
int |
getNSharedCacheEnvironments() |
boolean |
isOpen(File home) |
void |
setBeforeFinishInitHook(TestHook<EnvironmentImpl> hook) |
public static DbEnvPool getInstance()
public void setBeforeFinishInitHook(TestHook<EnvironmentImpl> hook)
public int getNSharedCacheEnvironments()
public EnvironmentImpl getEnvironment(File envHome, EnvironmentConfig config, boolean checkImmutableParams, RepConfigProxy repConfigProxy) throws EnvironmentNotFoundException, EnvironmentLockedException
EnvironmentNotFoundExceptionEnvironmentLockedExceptionpublic void clear()
public Collection<EnvironmentImpl> getEnvImpls()
public boolean isOpen(File home)
Copyright © 2024. All rights reserved.