Ejemplo n.º 1
0
  @Override
  public void deleteSnapshot(String snapName) throws DatabaseException {

    try {

      // check if the snapshot exists; if not, throw an exception
      snapMan.getSnapshotDB(database.getName(), snapName);

      // delete the snapshot
      snapMan.deletePersistentSnapshot(database.getName(), snapName);

    } catch (BabuDBException exc) {
      throw new DatabaseException(exc);
    }
  }