Examples of rollback()


Examples of org.infinispan.container.entries.CacheEntry.rollback()

            Map.Entry<Object, CacheEntry> e = it.next();
            CacheEntry entry = e.getValue();
            Object key = e.getKey();
            boolean needToUnlock = lockManager.possiblyLocked(entry);
            // could be null with read-committed
            if (entry != null && entry.isChanged()) entry.rollback();
            else {
               if (trace) log.trace("Entry for key {0} is null, not calling rollbackUpdate", key);
            }
            // and then unlock
            if (needToUnlock) {
View Full Code Here

Examples of org.infinispan.transaction.TransactionCoordinator.rollback()

      try {
         // finally commit or rollback the transaction
         if (commit) {
            txCoordinator.commit(localTx, false);
         } else {
            txCoordinator.rollback(localTx);
         }

         // make the transaction manager forget about our tx so that we don't get rollback exceptions in the log
         tm(c1).suspend();
      } finally {
View Full Code Here

Examples of org.infinispan.transaction.impl.TransactionCoordinator.rollback()

      try {
         // finally commit or rollback the transaction
         if (commit) {
            txCoordinator.commit(localTx, false);
         } else {
            txCoordinator.rollback(localTx);
         }

         // make the transaction manager forget about our tx so that we don't get rollback exceptions in the log
         tm(c1).suspend();
      } finally {
View Full Code Here

Examples of org.infinispan.transaction.tm.DummyTransactionManager.rollback()

                  cache2.put(k, "JBC");
               }
               if (useTx) {
                  if (!mgr.getTransaction().runPrepare()) { //couldn't prepare
                     latch.countDown();
                     mgr.rollback();
                  }
               }
            } catch (Exception e) {
               if (useTx) {
                  try {
View Full Code Here

Examples of org.jboss.as.domain.controller.plan.RolloutPlanController.rollback()

        RolloutPlanController.Result controllerResult = controller.execute();

        // Rollback if necessary
        switch (controllerResult) {
            case FAILED: {
                controller.rollback();
                handler.handleFailed(new ModelNode().set("Operation was not applied successfully to any servers"));
                return new BasicOperationResult(domainResult.compensatingOperation);
            }
            case PARTIAL: {
                controller.rollback();
View Full Code Here

Examples of org.jboss.as.logging.logmanager.ConfigurationPersistence.rollback()

                addCommitStep(context, configurationPersistence);
                // Add rollback handler in case rollback is invoked before a commit step is invoked
                context.completeStep(new RollbackHandler() {
                    @Override
                    public void handleRollback(final OperationContext context, final ModelNode operation) {
                        configurationPersistence.rollback();
                    }
                });
            } else {
                context.stepCompleted();
            }
View Full Code Here

Examples of org.jboss.cache.commands.ReversibleCommand.rollback()

      for (ListIterator i = copy.listIterator(copy.size()); i.hasPrevious();)
      {
         Object undoOp = i.previous();
         ReversibleCommand txCommand = (ReversibleCommand) undoOp;
         if (log.isDebugEnabled()) log.debug("Calling rollback() on command " + undoOp);
         txCommand.rollback();
      }
   }

   /**
    * Returns debug information about this transaction.
View Full Code Here

Examples of org.jboss.cache.commands.legacy.ReversibleCommand.rollback()

         // since we are using pessimistic locking, all pessimistic WriteCommands implement ReversibleCommand.
         ReversibleCommand txCommand = (ReversibleCommand) undoOp;
         if (log.isDebugEnabled()) log.debug("Calling rollback() on command " + undoOp);
         try
         {
            txCommand.rollback();
         }
         catch (RuntimeException re)
         {
            exc = re;
         }
View Full Code Here

Examples of org.jboss.cache.loader.CacheLoader.rollback()

      int num = baos.size();

      Object txnKey = new Object();
      List<Modification> mods = createUpdates();
      loader.prepare(txnKey, mods, false);
      loader.rollback(txnKey);

      baos = new ByteArrayOutputStream(1024);
      os = new MarshalledValueOutputStream(baos);
      loader.loadEntireState(os);
      os.close();
View Full Code Here

Examples of org.jboss.cache.transaction.DummyTransactionManager.rollback()

      addDelay();
      mgr.begin();

      cache.put("/one/two/three", "key1", "val1");
      cache.put("/one/two/three/four", "key2", "val2");
      mgr.rollback();
      addDelay();
      assertNull(cache.getNode("/one/two/three"));
      assert cache.getNode("/one") == null;

      assertFalse(loader.exists(Fqn.fromString("/one/two/three")));
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.