class LogbookOperationsImpl implements LogbookOperations {

    @Override
    public void switchIndex(String alias, String newIndexName) throws DatabaseException {
        try {
            indexationHelper.switchIndex(alias, newIndexName, LogbookCollections.OPERATION.getEsClient());
        } catch (DatabaseException exc) {
            LOGGER.error("Cannot switch alias {} to index {}", alias, newIndexName, exc);
            throw exc;
        }
    }

    public  LogbookOperationsImpl(LogbookDbAccess mongoDbAccess);
    @VisibleForTesting public  LogbookOperationsImpl(LogbookDbAccess mongoDbAccess, WorkspaceClientFactory workspaceClientFactory,
        StorageClientFactory storageClientFactory, IndexationHelper indexationHelper);

}