| | |
| | | import org.opends.server.backends.pluggable.spi.StorageRuntimeException; |
| | | import org.opends.server.backends.pluggable.spi.TreeName; |
| | | import org.opends.server.backends.pluggable.spi.WriteOperation; |
| | | import org.opends.server.backends.pluggable.spi.WriteableStorage; |
| | | import org.opends.server.backends.pluggable.spi.WriteableTransaction; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.InitializationException; |
| | |
| | | * If an error occurs while loading and processing the compressed |
| | | * schema definitions. |
| | | */ |
| | | JECompressedSchema(final Storage storage, WriteableStorage txn) |
| | | JECompressedSchema(final Storage storage, WriteableTransaction txn) |
| | | throws StorageRuntimeException, InitializationException |
| | | { |
| | | this.storage = storage; |
| | |
| | | * @throws InitializationException |
| | | * If an error occurs while loading and processing the definitions. |
| | | */ |
| | | private void load(WriteableStorage txn) throws StorageRuntimeException, InitializationException |
| | | private void load(WriteableTransaction txn) throws StorageRuntimeException, InitializationException |
| | | { |
| | | txn.openTree(adTreeName); |
| | | txn.openTree(ocTreeName); |
| | |
| | | storage.write(new WriteOperation() |
| | | { |
| | | @Override |
| | | public void run(WriteableStorage txn) throws Exception |
| | | public void run(WriteableTransaction txn) throws Exception |
| | | { |
| | | txn.put(treeName, keyEntry, value); |
| | | } |