| | |
| | | import org.opends.server.backends.pluggable.spi.ReadOperation; |
| | | import org.opends.server.backends.pluggable.spi.ReadableTransaction; |
| | | import org.opends.server.backends.pluggable.spi.Storage; |
| | | import org.opends.server.backends.pluggable.spi.Storage.AccessMode; |
| | | import org.opends.server.backends.pluggable.spi.StorageRuntimeException; |
| | | import org.opends.server.backends.pluggable.spi.StorageStatus; |
| | | import org.opends.server.backends.pluggable.spi.WriteOperation; |
| | |
| | | * @throws ConfigException |
| | | * If an configuration error occurs while opening the storage. |
| | | */ |
| | | void open() throws StorageRuntimeException, ConfigException |
| | | void open(AccessMode accessMode) throws StorageRuntimeException, ConfigException |
| | | { |
| | | try |
| | | { |
| | | storage.open(); |
| | | storage.open(accessMode); |
| | | storage.write(new WriteOperation() |
| | | { |
| | | @Override |
| | |
| | | } |
| | | }); |
| | | } |
| | | catch(StorageRuntimeException e) |
| | | { |
| | | throw e; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw new StorageRuntimeException(e); |