| | |
| | | /** The backend to which this entry root container belongs. */ |
| | | private final BackendImpl backend; |
| | | /** The backend configuration. */ |
| | | private PluggableBackendCfg config; |
| | | private final PluggableBackendCfg config; |
| | | /** The database environment monitor for this JE environment. */ |
| | | private DatabaseEnvironmentMonitor monitor; |
| | | |
| | |
| | | * |
| | | * @return The compressed schema manager for this backend. |
| | | */ |
| | | public CompressedSchema getCompressedSchema() |
| | | CompressedSchema getCompressedSchema() |
| | | { |
| | | return compressedSchema; |
| | | } |
| | |
| | | * |
| | | * @return The DatabaseEnvironmentMonitor object. |
| | | */ |
| | | public DatabaseEnvironmentMonitor getMonitorProvider() |
| | | DatabaseEnvironmentMonitor getMonitorProvider() |
| | | { |
| | | if (monitor == null) |
| | | { |
| | |
| | | * |
| | | * @return The set of DNs this root container stores. |
| | | */ |
| | | public Set<DN> getBaseDNs() |
| | | Set<DN> getBaseDNs() |
| | | { |
| | | return entryContainers.keySet(); |
| | | } |
| | |
| | | * |
| | | * @return The backend configuration used by this root container. |
| | | */ |
| | | public PluggableBackendCfg getConfiguration() |
| | | PluggableBackendCfg getConfiguration() |
| | | { |
| | | return config; |
| | | } |
| | |
| | | * @throws StorageRuntimeException |
| | | * If an error occurs while retrieving the entry count. |
| | | */ |
| | | public long getEntryCount() throws StorageRuntimeException |
| | | long getEntryCount() throws StorageRuntimeException |
| | | { |
| | | try |
| | | { |
| | |
| | | * |
| | | * @return The assigned entry ID. |
| | | */ |
| | | public EntryID getNextEntryID() |
| | | EntryID getNextEntryID() |
| | | { |
| | | return new EntryID(nextid.getAndIncrement()); |
| | | } |
| | | |
| | | /** |
| | | * Return the lowest entry ID assigned. |
| | | * |
| | | * @return The lowest entry ID assigned. |
| | | */ |
| | | public Long getLowestEntryID() |
| | | { |
| | | return 1L; |
| | | } |
| | | |
| | | /** |
| | | * Resets the next entry ID counter to zero. This should only be used after |
| | | * clearing all databases. |
| | | */ |