예제 #1
0
  @Override
  public void deletePersistentSnapshot(String dbName, String snapshotName) throws BabuDBException {

    BabuDBRequestResultImpl<Object> result =
        new BabuDBRequestResultImpl<Object>(dbs.getResponseManager());
    dbs.getTransactionManager()
        .makePersistent(
            dbs.getDatabaseManager().createTransaction().deleteSnapshot(dbName, snapshotName),
            result);
    result.get();
  }
예제 #2
0
  /* (non-Javadoc)
   * @see org.xtreemfs.babudb.api.SnapshotManager#createPersistentSnapshot(java.lang.String, org.xtreemfs.babudb.snapshots.SnapshotConfig)
   */
  @Override
  public void createPersistentSnapshot(String dbName, SnapshotConfig snap) throws BabuDBException {

    // synchronously executing the request
    BabuDBRequestResultImpl<Object> result =
        new BabuDBRequestResultImpl<Object>(dbs.getResponseManager());
    dbs.getTransactionManager()
        .makePersistent(
            dbs.getDatabaseManager().createTransaction().createSnapshot(dbName, snap), result);
    result.get();
  }