Examples of prepare()


Examples of org.hornetq.core.transaction.Transaction.prepare()

            {
               log.info("ignoring prepare on xid as already called :" + xid);
            }
            else
            {
               theTx.prepare();
            }
         }
      }
   }
View Full Code Here

Examples of org.hornetq.core.transaction.impl.TransactionImpl.prepare()

         counter.increment(tx, 1);
      }

      assertEquals(0, counter.getValue());

      tx.prepare();

      storage.waitOnOperations();

      assertEquals(0, counter.getValue());
     
View Full Code Here

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

      TransactionTable txTable = TestingUtil.extractComponent(c1, TransactionTable.class);
      TransactionCoordinator txCoordinator = TestingUtil.extractComponent(c1, TransactionCoordinator.class);

      // Execute the prepare on both nodes
      LocalTransaction localTx = txTable.getLocalTransaction(tm(c1).getTransaction());
      txCoordinator.prepare(localTx);

      final CountDownLatch commitLatch = new CountDownLatch(1);
      Thread worker = new Thread("RehasherSim,StaleLocksWithCommitDuringStateTransferTest") {
         @Override
         public void run() {
View Full Code Here

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

      TransactionTable txTable = TestingUtil.extractComponent(c1, TransactionTable.class);
      TransactionCoordinator txCoordinator = TestingUtil.extractComponent(c1, TransactionCoordinator.class);

      // Execute the prepare on both nodes
      LocalTransaction localTx = txTable.getLocalTransaction(tm(c1).getTransaction());
      txCoordinator.prepare(localTx);

      final CountDownLatch commitLatch = new CountDownLatch(1);
      Thread worker = new Thread("RehasherSim,StaleLocksWithCommitDuringStateTransferTest") {
         @Override
         public void run() {
View Full Code Here

Examples of org.infinispan.transaction.xa.TransactionXaAdapter.prepare()

   public void testOneTx() throws Exception {
      dummyTm().begin();
      cache.put("k", "v");
      TransactionXaAdapter xaRes = (TransactionXaAdapter) dummyTm().firstEnlistedResource();
      assertPrepared(0, dummyTm().getTransaction());
      xaRes.prepare(xaRes.getLocalTransaction().getXid());
      assertPrepared(1, dummyTm().getTransaction());
      final DummyTransaction suspend = (DummyTransaction) dummyTm().suspend();

      xaRes.commit(xaRes.getLocalTransaction().getXid(), false);
      assertPrepared(0, suspend);
View Full Code Here

Examples of org.infoglue.cms.providers.ComponentModel.prepare()

      if(componentModelClassName != null && !componentModelClassName.equals(""))
      {
        try
        {
          ComponentModel componentModel = (ComponentModel)loadExtensionClass(componentModelClassName).newInstance();;
          componentModel.prepare(template, this.getController(), this.getController().getComponentLogic().getInfoGlueComponent().getModel());
        }
        catch (Exception e)
        {
          logger.error("The component '" + this.getController().getComponentLogic().getInfoGlueComponent().getName() + "' stated that class: " + componentModelClassName + " should be used as model. An exception was thrown when it was invoked: " + e.getMessage(), e)
        }
View Full Code Here

Examples of org.javex.ExpressionImpl.prepare()

  private void assertion(String s,java.util.List external,Map variables,Object r){
    try {
      ExpressionImpl x1 = new ExpressionImpl(s);
      java.util.List l=external;
      x1.setExternalFunctions(l);
      x1.prepare();
      Object o1 = x1.evaluate(variables);

      if(JavexUtils.isNumber(o1) && JavexUtils.isNumber(r)){
        if((Double)JavexUtils.getValue(o1)-(Double)JavexUtils.getValue(r)!=0){
          System.out.println(s + " : error, was " + o1.toString() + " expected " + r.toString());
View Full Code Here

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

         throws Exception
   {
      CacheLoader loader = loaderTL.get();

      List<Modification> mods = createUpdates();
      loader.prepare(null, mods, true);
      checkModifications(mods);
   }

   /**
    * Tests a two-phase transaction.
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.prepare()

   {
      // The deployment manager
      DeploymentManager deployMgr = getDeploymentManager();

      // Prepare
      DeploymentProgress prepare = deployMgr.prepare(name);
      prepare.run();
      assertComplete(prepare);
   }

   void stopAndRemove(String[] names) throws Exception
View Full Code Here

Examples of org.jboss.jms.tx.MessagingXAResource.prepare()

         assertTrue(rmSizeBeforeStart + 1 == rmAfter);
         res1.start(xid, XAResource.TMJOIN);
         res1.end(xid, XAResource.TMSUCCESS);
         rmAfter = rm.size();
         assertTrue(rmSizeBeforeStart + 1 == rmAfter);
         res1.prepare(xid);
         res1.commit(xid, false);
         rmAfter = rm.size();
         assertTrue(rmSizeBeforeStart == rmAfter);
      }
      finally
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.