| | |
| | | private Storage storage; |
| | | |
| | | /** The backend to which this entry root container belongs. */ |
| | | private final BackendImpl backend; |
| | | private final BackendImpl<?> backend; |
| | | /** The backend configuration. */ |
| | | private final PluggableBackendCfg config; |
| | | /** The database environment monitor for this JE environment. */ |
| | |
| | | * A reference to the JE back end that is creating this root |
| | | * container. |
| | | */ |
| | | RootContainer(BackendImpl backend, PluggableBackendCfg config) |
| | | RootContainer(BackendImpl<?> backend, PluggableBackendCfg config) |
| | | { |
| | | this.backend = backend; |
| | | this.config = config; |
| | |
| | | { |
| | | try |
| | | { |
| | | Storage storage = backend.newStorageInstance(); |
| | | storage.initialize(config); |
| | | storage.removeStorageFiles(); |
| | | backend.getStorage().removeStorageFiles(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | storage = backend.newStorageInstance(); |
| | | storage.initialize(config); |
| | | storage = backend.getStorage(); |
| | | storage.open(); |
| | | storage.write(new WriteOperation() |
| | | { |