| | |
| | | |
| | | import static com.persistit.Transaction.CommitPolicy.*; |
| | | import static java.util.Arrays.*; |
| | | import static org.opends.messages.ConfigMessages.ERR_CONFIG_BACKEND_INSANE_MODE; |
| | | import static org.opends.messages.ConfigMessages.ERR_CONFIG_BACKEND_MODE_INVALID; |
| | | |
| | | import static org.opends.messages.ConfigMessages.*; |
| | | import static org.opends.messages.JebMessages.*; |
| | | import static org.opends.server.util.ServerConstants.ALERT_DESCRIPTION_DISK_FULL; |
| | | import static org.opends.server.util.ServerConstants.ALERT_DESCRIPTION_DISK_SPACE_LOW; |
| | | import static org.opends.server.util.ServerConstants.ALERT_TYPE_DISK_FULL; |
| | | import static org.opends.server.util.ServerConstants.ALERT_TYPE_DISK_SPACE_LOW; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | import java.io.File; |
| | |
| | | return exchange; |
| | | } |
| | | |
| | | private void release() |
| | | @Override |
| | | public void close() |
| | | { |
| | | for (final Exchange ex : exchanges.values()) |
| | | { |
| | |
| | | } |
| | | finally |
| | | { |
| | | storageImpl.release(); |
| | | storageImpl.close(); |
| | | } |
| | | } |
| | | catch (final RollbackException e) |
| | |
| | | } |
| | | finally |
| | | { |
| | | storageImpl.release(); |
| | | storageImpl.close(); |
| | | } |
| | | } |
| | | catch (final RollbackException e) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public WriteableStorage getWriteableStorage() |
| | | { |
| | | return new StorageImpl(); |
| | | } |
| | | |
| | | @Override |
| | | public boolean supportsBackupAndRestore() |
| | | { |
| | | return true; |
| | |
| | | setDBDirPermissions(config, backendDirectory); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void removeStorageFiles() throws StorageRuntimeException |
| | | { |
| | | if (!backendDirectory.isDirectory()) |