|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.RootContainer
public class RootContainer
Wrapper class for the JE environment. Root container holds all the entry containers for each base DN. It also maintains all the openings and closings of the entry containers.
Constructor Summary | |
---|---|
RootContainer(Backend backend,
LocalDBBackendCfg config)
Creates a new RootContainer object. |
Method Summary | |
---|---|
ConfigChangeResult |
applyConfigurationChange(LocalDBBackendCfg cfg)
Applies the configuration changes to this change listener. |
int |
cleanedLogFiles()
Run the cleaner and return the number of files cleaned. |
void |
close()
Close the root entryContainer. |
java.util.Set<DN> |
getBaseDNs()
Returns all the baseDNs this root container stores. |
JECompressedSchema |
getCompressedSchema()
Retrieves the compressed schema manager for this backend. |
LocalDBBackendCfg |
getConfiguration()
Get the backend configuration used by this root container. |
EntryContainer |
getEntryContainer(DN baseDN)
Return the entry container for a specific base DN. |
java.util.Collection<EntryContainer> |
getEntryContainers()
Return all the entry containers in this root container. |
long |
getEntryCount()
Get the total number of entries in this root container. |
com.sleepycat.je.EnvironmentConfig |
getEnvironmentConfig()
Get the environment config of the JE environment used in this root container. |
com.sleepycat.je.LockStats |
getEnvironmentLockStats(com.sleepycat.je.StatsConfig statsConfig)
Get the environment lock stats of the JE environment used in this root container. |
com.sleepycat.je.EnvironmentStats |
getEnvironmentStats(com.sleepycat.je.StatsConfig statsConfig)
Get the environment stats of the JE environment used in this root container. |
com.sleepycat.je.TransactionStats |
getEnvironmentTransactionStats(com.sleepycat.je.StatsConfig statsConfig)
Get the environment transaction stats of the JE environment used in this root container. |
java.lang.Long |
getHighestEntryID()
Return the highest entry ID assigned. |
java.lang.Long |
getLowestEntryID()
Return the lowest entry ID assigned. |
DatabaseEnvironmentMonitor |
getMonitorProvider()
Get the DatabaseEnvironmentMonitor object for JE environment used by this root container. |
EntryID |
getNextEntryID()
Assign the next entry ID. |
void |
importForceCheckPoint()
Force a checkpoint. |
boolean |
isConfigurationChangeAcceptable(LocalDBBackendCfg cfg,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener. |
void |
open(com.sleepycat.je.EnvironmentConfig envConfig)
Opens the root container using the JE configuration object provided. |
EntryContainer |
openEntryContainer(DN baseDN,
java.lang.String name)
Opens the entry container for a base DN. |
void |
preload(long timeLimit)
Preload the database cache. |
void |
registerEntryContainer(DN baseDN,
EntryContainer entryContainer)
Registeres the entry container for a base DN. |
void |
resetNextEntryID()
Resets the next entry ID counter to zero. |
EntryContainer |
unregisterEntryContainer(DN baseDN)
Unregisteres the entry container for a base DN. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RootContainer(Backend backend, LocalDBBackendCfg config)
config
- The configuration of the JE backend.backend
- A reference to the JE back end that is creating this
root container.Method Detail |
---|
public void open(com.sleepycat.je.EnvironmentConfig envConfig) throws com.sleepycat.je.DatabaseException, ConfigException
envConfig
- The JE environment configuration.
com.sleepycat.je.DatabaseException
- If an error occurs when creating the environment.
ConfigException
- If an configuration error occurs while creating
the enviornment.public EntryContainer openEntryContainer(DN baseDN, java.lang.String name) throws com.sleepycat.je.DatabaseException, ConfigException
baseDN
- The base DN of the entry container to open.name
- The name of the entry container or NULL
to open
the default entry container for the given base DN.
com.sleepycat.je.DatabaseException
- If an error occurs while opening the entry
container.
ConfigException
- If an configuration error occurs while opening
the entry container.public void registerEntryContainer(DN baseDN, EntryContainer entryContainer) throws com.sleepycat.je.DatabaseException
baseDN
- The base DN of the entry container to close.entryContainer
- The entry container to register for the baseDN.
com.sleepycat.je.DatabaseException
- If an error occurs while opening the entry
container.public EntryContainer unregisterEntryContainer(DN baseDN)
baseDN
- The base DN of the entry container to close.
public JECompressedSchema getCompressedSchema()
public DatabaseEnvironmentMonitor getMonitorProvider()
public void preload(long timeLimit)
timeLimit
- The time limit for the preload process.public void close() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
- If an error occurs while attempting to close
the entryContainer.public java.util.Collection<EntryContainer> getEntryContainers()
public java.util.Set<DN> getBaseDNs()
public EntryContainer getEntryContainer(DN baseDN)
baseDN
- The base DN of the entry container to retrive.
public com.sleepycat.je.EnvironmentStats getEnvironmentStats(com.sleepycat.je.StatsConfig statsConfig) throws com.sleepycat.je.DatabaseException
statsConfig
- The configuration to use for the EnvironmentStats
object.
com.sleepycat.je.DatabaseException
- If an error occurs while retriving the stats
object.public com.sleepycat.je.LockStats getEnvironmentLockStats(com.sleepycat.je.StatsConfig statsConfig) throws com.sleepycat.je.DatabaseException
statsConfig
- The configuration to use for the EnvironmentStats
object.
com.sleepycat.je.DatabaseException
- If an error occurs while retriving the stats
object.public com.sleepycat.je.TransactionStats getEnvironmentTransactionStats(com.sleepycat.je.StatsConfig statsConfig) throws com.sleepycat.je.DatabaseException
statsConfig
- The configuration to use for the EnvironmentStats
object.
com.sleepycat.je.DatabaseException
- If an error occurs while retriving the stats
object.public com.sleepycat.je.EnvironmentConfig getEnvironmentConfig() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
- If an error occurs while retriving the
configuration object.public LocalDBBackendCfg getConfiguration()
public long getEntryCount() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
- If an error occurs while retriving the entry
count.public EntryID getNextEntryID()
public java.lang.Long getLowestEntryID()
public java.lang.Long getHighestEntryID()
public void resetNextEntryID()
public boolean isConfigurationChangeAcceptable(LocalDBBackendCfg cfg, java.util.List<Message> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<LocalDBBackendCfg>
cfg
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.
true
if the proposed change is
acceptable, or false
if it is not.public ConfigChangeResult applyConfigurationChange(LocalDBBackendCfg cfg)
applyConfigurationChange
in interface ConfigurationChangeListener<LocalDBBackendCfg>
cfg
- The new configuration containing the changes.
public void importForceCheckPoint() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
- If a database error occurs.public int cleanedLogFiles() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
- If a database error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |