Examples of commit()


Examples of appeng.crafting.MECraftingInventory.commit()

    try
    {
      waitingFor.resetStatus();
      ((CraftingJob) job).tree.setJob( ci, this, src );
      if ( ci.commit( src ) )
      {
        finalOutput = job.getOutput();
        waiting = false;
        isComplete = false;
        markDirty();

Examples of bitronix.tm.BitronixTransactionManager.commit()

        if (log.isDebugEnabled()) log.debug("*** closing connection 1");
        connection1.close();

        if (log.isDebugEnabled()) log.debug("*** committing");
        tm.commit();
        if (log.isDebugEnabled()) log.debug("*** TX is done");
    }

    public void testSimpleWorkingCase() throws Exception {
        if (log.isDebugEnabled()) log.debug("*** getting TM");

Examples of br.gov.frameworkdemoiselle.transaction.Transaction.commit()

          transactionInfo.clear();

          getLogger().info(getBundle().getString("transaction-rolledback"));

        } else {
          transaction.commit();
          transactionInfo.clear();

          getLogger().info(getBundle().getString("transaction-commited"));
        }
      }

Examples of ch.ethz.prose.tools.RemoteAspectManager.commit()

            return;
        }

        try {
            RemoteAspectManager manager = getAspectManager();
            manager.commit(transactionId);
        } catch (RemoteException e) {
            getRun().setUnreachable();
            throw new UnreachableException(e);
        } finally {
            transactionId = null;

Examples of ch.inftec.ju.db.TxHandler.commit()

    SystemPropertyTempSetter tempSetter = handler.initContainerTestEnv();
   
    try (TxHandler txHandler = new TxHandler(this.tx, true)) {
      // Execute post test annotations (dataset exporting, data verifying)
      handler.executePreTestAnnotations(new JuEmUtil(this.em));
      txHandler.commit(); // Commit after data verifying / exporting
    } catch (Exception ex) {
      // Reset properties in case of an exception
      tempSetter.close();
      throw ex;
    }

Examples of cirrus.hibernate.Transaction.commit()

                order.add( item, quantity.intValue(  ) );
            }

            /* Save */
            s.save( order );
            tx.commit(  );

            /* Empty the cart */
            getCart(  ).clear(  );

            /* send the email */
 

Examples of co.cask.tephra.TransactionManager.commit()

      final byte[] a = { 'a' };
      final byte[] b = { 'b' };
      // start a tx1, add a change A and commit
      Transaction tx1 = txManager.startShort();
      Assert.assertTrue(txManager.canCommit(tx1, Collections.singleton(a)));
      Assert.assertTrue(txManager.commit(tx1));
      // start a tx2 and add a change B
      Transaction tx2 = txManager.startShort();
      Assert.assertTrue(txManager.canCommit(tx2, Collections.singleton(b)));
      // start a tx3
      Transaction tx3 = txManager.startShort();

Examples of co.paralleluniverse.galaxy.Store.commit()

                    StoreTransaction tx = store.beginTransaction();
                    try {
                        long root = store.getRoot("root", tx);
                        byte buf[] = null;//"hello".getBytes();
                        store.set(root, buf, tx);
                        store.commit(tx);
                    } catch (TimeoutException ex) {
                        throw new RuntimeException("set failed");
                    }
                    Thread.sleep(20000);
                } else {

Examples of co.paralleluniverse.galaxy.quasar.Store.commit()

            try {
                final long root = store.getRoot(rootName, txn);
                store.getx(root, txn);
                store.set(root, ser.write(actor), txn);
                LOG.debug("commit Registering actor {} at rootId  {}", actor, root);
                store.commit(txn);
                RemoteChannelReceiver.getReceiver(LocalActor.getMailbox(actor), true).handleRefMessage(new GlxRemoteChannel.RefMessage(true, grid.cluster().getMyNodeId()));
                return root; // root is the global id
            } catch (TimeoutException e) {
                LOG.error("Registering actor {} at root {} failed due to timeout", actor, rootName);
                store.rollback(txn);

Examples of com.activequant.archive.IArchiveWriter.commit()

        IArchiveWriter iwr = fac.getWriter(TimeFrame.EOD);
       
        TimeStamp now = new TimeStamp(new Date());
        double value = Math.random();
        iwr.write("TEST",now,"PX_SETTLE", value);
        iwr.commit();
       
        TSContainer container = iar.getTimeSeries("TEST", "PX_SETTLE", now);
        if(container!=null && container.timeStamps.length==1 && container.values[0] == value)
          System.out.println("All ok.");       
        else{
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.