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

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


    Level.SEVERE, e, "DataStore initialization failed");
      throw e;
  } finally {
      if (dbTxn != null && !done) {
    try {
        dbTxn.abort();
    } catch (RuntimeException e) {
        logger.logThrow(Level.FINE, e, "Exception during abort");
    }
      }
  }
View Full Code Here


        dbTxn, newLastObjectId);
    done = true;
    dbTxn.commit();
      } finally {
    if (!done) {
        dbTxn.abort();
    }
      }
      objectIdInfo = txnInfo.createObjectIdInfo(
    newNextObjectId, newLastObjectId);
  }
View Full Code Here

      done = true;
      dbTxn.commit();
      return id;
  } finally {
      if (!done) {
    dbTxn.abort();
      }
  }
    }

    /**
 
View Full Code Here

    namesDb = dbs.names();
    txnDone = true;
    txn.commit();
      } finally {
    if (!txnDone) {
        txn.abort();
    }
      }
      lockManager =
    new MultiLockManager<Object>(lockTimeout, numKeyMaps);
      ServerSocket serverSocket =
View Full Code Here

    txnDone = true;
    txn.commit();
    return result;
      } finally {
    if (!txnDone) {
        txn.abort();
    }
      }
  } finally {
      callFinished();
  }
View Full Code Here

    return (data == null) ? null
        : new GetObjectResults(
      data, getWaiting(oid) == GetWaitingResult.WRITERS);
      } finally {
    if (!txnDone) {
        txn.abort();
    }
      }
  } finally {
      nodeCallFinished(nodeInfo);
  }
View Full Code Here

        : new GetObjectForUpdateResults(
      result, waiters == GetWaitingResult.WRITERS,
      waiters == GetWaitingResult.READERS);
      } finally {
    if (!txnDone) {
        txn.abort();
    }
      }
  } finally {
      nodeCallFinished(nodeInfo);
  }
View Full Code Here

    oidsDb.markForUpdate(txn, encodeLong(oid));
    txnDone = true;
    txn.commit();
      } finally {
    if (!txnDone) {
        txn.abort();
    }
      }
      GetWaitingResult waiting = getWaiting(oid);
      return new UpgradeObjectResults(
    waiting == GetWaitingResult.WRITERS,
View Full Code Here

    }
    txnDone = true;
    txn.commit();
      } finally {
    if (!txnDone) {
        txn.abort();
    }
      }
      if (result != null) {
    lock(nodeInfo, result.oid, false, "nextObjectId");
      }
View Full Code Here

        }
        txnDone = true;
        txn.commit();
    } finally {
        if (!txnDone) {
      txn.abort();
        }
    }
    if (results != null &&
        found == results.found &&
        safeEquals(found ? null : nextName, results.nextName))
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.