Package com.sun.sgs.service.store.db

Examples of com.sun.sgs.service.store.db.DbTransaction.commit()


      useAllocationBlockPlaceholders =
    env.useAllocationBlockPlaceholders();
      freeObjectIds = new FreeObjectIds(useAllocationBlockPlaceholders);
      removeUnusedAllocationPlaceholders(dbTxn);
      done = true;
      dbTxn.commit();
  } catch (RuntimeException e) {
      throw handleException(
    null, Level.SEVERE, e, "DataStore initialization");
  } catch (Error e) {
      logger.logThrow(
View Full Code Here


    newLastObjectId =
        newNextObjectId + ALLOCATION_BLOCK_SIZE - 1;
    maybeUpdateAllocationBlockPlaceholders(
        dbTxn, newLastObjectId);
    done = true;
    dbTxn.commit();
      } finally {
    if (!done) {
        dbTxn.abort();
    }
      }
View Full Code Here

        throw new DataStoreException(
      "Class hash already present");
    }
      }
      done = true;
      dbTxn.commit();
      return result;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
View Full Code Here

  boolean done = false;
  DbTransaction dbTxn = env.beginTransaction(txn.getTimeout());
  try {
      result = classesDb.get(dbTxn, key, false);
      done = true;
      dbTxn.commit();
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
View Full Code Here

  boolean done = false;
  try {
      long id = DataStoreHeader.getNextId(
    key, infoDb, dbTxn, blockSize);
      done = true;
      dbTxn.commit();
      return id;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
View Full Code Here

        throw new DataStoreException(
      "Class hash already present");
    }
      }
      done = true;
      dbTxn.commit();
      return result;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
View Full Code Here

      useAllocationBlockPlaceholders =
    env.useAllocationBlockPlaceholders();
      freeObjectIds = new FreeObjectIds(useAllocationBlockPlaceholders);
      removeUnusedAllocationPlaceholders(dbTxn);
      done = true;
      dbTxn.commit();

            logger.log(Level.CONFIG,
                       "Created DataStoreImpl with properties:" +
                       "\n  " + DIRECTORY_PROPERTY + "=" + specifiedDirectory +
                       "\n  " + ENVIRONMENT_CLASS_PROPERTY + "=" +
View Full Code Here

    newLastObjectId =
        newNextObjectId + ALLOCATION_BLOCK_SIZE - 1;
    maybeUpdateAllocationBlockPlaceholders(
        dbTxn, newLastObjectId);
    done = true;
    dbTxn.commit();
      } finally {
    if (!done) {
        dbTxn.abort();
    }
      }
View Full Code Here

  boolean done = false;
  try {
      long id = DataStoreHeader.getNextId(
    key, infoDb, dbTxn, blockSize);
      done = true;
      dbTxn.commit();
      return id;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
View Full Code Here

  boolean done = false;
  DbTransaction dbTxn = env.beginTransaction(timeout);
  try {
      byte[] result = classesDb.get(dbTxn, key, false);
      done = true;
      dbTxn.commit();
      return result;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.