Package com.sun.sgs.test.util

Examples of com.sun.sgs.test.util.DummyTransaction.commit()


      };
  DummyTransaction txn = new DummyTransaction(
      DummyTransaction.UsePrepareAndCommit.NO);
  txnProxy.setCurrentTransaction(txn);
  contextFactory.joinTransaction();
  txn.commit();
  txn = new DummyTransaction();
  txnProxy.setCurrentTransaction(txn);
  contextFactory.joinTransaction();
  txn.commit();
    }
View Full Code Here


  contextFactory.joinTransaction();
  txn.commit();
  txn = new DummyTransaction();
  txnProxy.setCurrentTransaction(txn);
  contextFactory.joinTransaction();
  txn.commit();
    }
}
View Full Code Here

  long[] ids = new long[items];
  for (int i = 0; i < items; i++) {
      ids[i] = store.createObject(txn);
      store.setObject(txn, ids[i], data);
  }
  txn.commit();
  for (int r = 0; r < repeat; r++) {
      long start = System.currentTimeMillis();
      for (int c = 0; c < count; c++) {
    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
View Full Code Here

      for (int c = 0; c < count; c++) {
    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
        store.getObject(txn, ids[i], false);
    }
    txn.commit();
      }
      long stop = System.currentTimeMillis();
      System.err.println(
    "Time: " + (stop - start) / (float) count +
    " ms per transaction");
View Full Code Here

  long[] ids = new long[items];
  for (int i = 0; i < items; i++) {
      ids[i] = store.createObject(txn);
      store.setObject(txn, ids[i], data);
  }
  txn.commit();
  for (int r = 0; r < repeat; r++) {
      long start = System.currentTimeMillis();
      for (int c = 0; c < count; c++) {
    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
View Full Code Here

      for (int c = 0; c < count; c++) {
    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
        store.getObject(txn, ids[i], true);
    }
    txn.commit();
      }
      long stop = System.currentTimeMillis();
      System.err.println(
    "Time: " + (stop - start) / (float) count +
    " ms per transaction");
View Full Code Here

  long[] ids = new long[items];
  for (int i = 0; i < items; i++) {
      ids[i] = store.createObject(txn);
      store.setObject(txn, ids[i], data);
  }
  txn.commit();
  for (int r = 0; r < repeat; r++) {
      long start = System.currentTimeMillis();
      for (int c = 0; c < count; c++) {
    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
View Full Code Here

    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
        store.getObject(txn, ids[i], false);
        store.markForUpdate(txn, ids[i]);
    }
    txn.commit();
      }
      long stop = System.currentTimeMillis();
      System.err.println(
    "Time: " + (stop - start) / (float) count +
    " ms per transaction");
View Full Code Here

  long[] ids = new long[items];
  for (int i = 0; i < items; i++) {
      ids[i] = store.createObject(txn);
      store.setObject(txn, ids[i], data);
  }
  txn.commit();
  for (int r = 0; r < repeat; r++) {
      long start = System.currentTimeMillis();
      for (int c = 0; c < count; c++) {
    txn = createTransaction(1000);
    for (int i = 0; i < items; i++) {
View Full Code Here

        if (update) {
      result[0] ^= 1;
      store.setObject(txn, ids[i], result);
        }
    }
    txn.commit();
      }
      long stop = System.currentTimeMillis();
      System.err.println(
    "Time: " + (stop - start) / (float) count +
    " ms per transaction");
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.