Package com.sun.sgs.service

Examples of com.sun.sgs.service.TransactionParticipant.prepare()


    detail = detailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    if (iter.hasNext() || disablePrepareAndCommitOpt) {
        boolean readOnly = participant.prepare(this);
        if (detail != null) {
      detail.setPrepared(System.currentTimeMillis() -
             startTime, readOnly);
        }
        if (readOnly) {
View Full Code Here


    public void testPrepareNullTxn() throws Exception {
  store.createObject(txn);
  TransactionParticipant participant =
      txn.participants.iterator().next();
  try {
      participant.prepare(null);
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
    }
View Full Code Here

    detail = participantDetailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    if (iter.hasNext() || disablePrepareAndCommitOpt) {
        boolean readOnly = participant.prepare(this);
        if (detail != null) {
      detail.setPrepared(System.currentTimeMillis() -
             startTime, readOnly);
        }
        if (readOnly) {
View Full Code Here

      iter.hasNext(); )
  {
      TransactionParticipant participant = iter.next();
      boolean readOnly;
      try {
    readOnly = participant.prepare(this);
      } catch (Exception e) {
    if (state != State.ABORTED) {
        abort(e);
    }
    throw e;
View Full Code Here

    detail = participantDetailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    if (iter.hasNext() || disablePrepareAndCommitOpt) {
        boolean readOnly = participant.prepare(this);
        if (detail != null) {
      detail.setPrepared(System.currentTimeMillis() -
             startTime, readOnly);
        }
        if (readOnly) {
View Full Code Here

    public void testPrepareNullTxn() throws Exception {
  store.createObject(txn);
  TransactionParticipant participant =
      txn.participants.iterator().next();
  try {
      participant.prepare(null);
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
    }
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.