Package com.sun.sgs.service

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


           "prepare {0} participant:{1} returns {2}",
           this, getParticipantInfo(participant),
           readOnly);
        }
    } else {
        participant.prepareAndCommit(this);
        if (detail != null) {
      detail.
          setCommittedDirectly(System.currentTimeMillis() -
             startTime);
      collectorHandle.addParticipant(detail);
View Full Code Here


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

           "prepare {0} participant:{1} returns {2}",
           this, getParticipantInfo(participant),
           readOnly);
        }
    } else {
        participant.prepareAndCommit(this);
        if (detail != null) {
      detail.
          setCommittedDirectly(System.currentTimeMillis() -
             startTime);
      collectorHandle.addParticipant(detail);
View Full Code Here

    proxy = null;
      }
      TransactionParticipant participant =
    participants.iterator().next();
      try {
    participant.prepareAndCommit(this);
      } catch (Exception e) {
    if (state != State.ABORTED) {
        abort(e);
    }
    throw e;
View Full Code Here

           "prepare {0} participant:{1} returns {2}",
           this, getParticipantInfo(participant),
           readOnly);
        }
    } else {
        participant.prepareAndCommit(this);
        if (detail != null) {
      detail.
          setCommittedDirectly(System.currentTimeMillis() -
             startTime);
      collectorHandle.addParticipant(detail);
View Full Code Here

    public void testPrepareAndCommitNullTxn() throws Exception {
  store.createObject(txn);
  TransactionParticipant participant =
      txn.participants.iterator().next();
  try {
      participant.prepareAndCommit(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.