Package com.sun.sgs.service

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


      if (detailMap != null) {
    detail = detailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    participant.commit(this);
    if (detail != null) {
        detail.setCommitted(System.currentTimeMillis() -
          startTime);
        collectorHandle.addParticipant(detail);
    }
View Full Code Here


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

      if (participantDetailMap != null) {
    detail = participantDetailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    participant.commit(this);
    if (detail != null) {
        detail.setCommitted(System.currentTimeMillis() -
          startTime);
        collectorHandle.addParticipant(detail);
    }
View Full Code Here

  } else {
      prepare();
      state = State.COMMITTING;
      for (TransactionParticipant participant : participants) {
    try {
        participant.commit(this);
    } catch (RuntimeException e) {
        logger.logThrow(Level.WARNING, e, "Commit failed");
    }
      }
  }
View Full Code Here

      if (participantDetailMap != null) {
    detail = participantDetailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    participant.commit(this);
    if (detail != null) {
        detail.setCommitted(System.currentTimeMillis() -
          startTime);
        collectorHandle.addParticipant(detail);
    }
View Full Code Here

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