Examples of abort()


Examples of com.hp.hpl.jena.graph.TransactionHandler.abort()

    {
        Graph g = getGraph();
        TransactionHandler th = g.getTransactionHandler();
        th.transactionsSupported();
        try { th.begin(); } catch (UnsupportedOperationException x) {}
        try { th.abort(); } catch (UnsupportedOperationException x) {}
        try { th.begin(); th.commit(); } catch (UnsupportedOperationException x) {}
        /* */
        Command cmd = new Command()
        { @Override
            public Object execute() { return null; } };
View Full Code Here

Examples of com.hp.hpl.jena.query.Dataset.abort()

    @Test public void factoryTxn3()
    {
        Dataset ds = create() ;
        ds.begin(ReadWrite.WRITE) ;
        assertTrue(ds.isInTransaction()) ;
        ds.abort() ;
        assertFalse(ds.isInTransaction()) ;
    }

    @Test public void factoryTxn4()
    {
View Full Code Here

Examples of com.hp.hpl.jena.query.QueryExecution.abort()

            getStore() ;
            getModStore().getDataset() ;
            Query query = modQuery.getQuery() ;
            QueryExecution qExec = QueryExecutionFactory.create(query, getModStore().getDataset()) ;
            // Don't execute
            qExec.abort();
        }
       
        if ( getModTime().timingEnabled() )
        {
            // Setup costs : flush classes into memory and establish connection
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.abort()

   
    assertTrue("Initially empty", model.isEmpty());
    model.begin();
    model.add(RDF.type, RDF.type, RDF.type);
    assertTrue("Uncommited triple can be seen", model.contains(RDF.type, RDF.type, RDF.type));
    model.abort();
    assertTrue("Nothing was added, the add aborted", model.isEmpty());
    model.add(RDF.type, RDF.type, RDF.type);
    assertEquals("Model contains 1 triple", 1l, model.size());
    model.begin();
    model.remove(RDF.type, RDF.type, RDF.type);
View Full Code Here

Examples of com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn.abort()

            } catch (RuntimeException ex)
            {
                ex.printStackTrace(System.err) ;
                if ( dsg != null )
                {
                    dsg.abort() ;
                    dsg.end() ;
                    dsg = null ;
                }
                return null ;
            }
View Full Code Here

Examples of com.hp.mwtests.performance.products.TxWrapper.abort()

            tx.add(DummyResource.create());

            if (isParameterDefined("-commit"))
                tx.commit()// Top level commit
            else
                tx.abort()// Top level rollback

        }
        catch (Exception e)
        {
            System.err.println("Unexpected Exception: "+e);
View Full Code Here

Examples of com.jada.order.payment.PaymentEngine.abort()

      catch (AuthorizationException e) {
        throw e;
      }
      catch (PaymentException e) {
        logger.error(e);
        paymentEngine.abort();
        shoppingCart.cancelTransaction();
        throw e;
      }
     
      try {
View Full Code Here

Examples of com.persistit.TransactionStatus.abort()

                } finally {
                    bucket.unlock();
                }
            }
        } catch (InterruptedException ie) {
            status.abort();
            status.complete(0);
            throw ie;
        }
        return status;
    }
View Full Code Here

Examples of com.qspin.qtaste.testsuite.TestScript.TaskThread.abort()

                // Get thread
                Thread thread = threads[i];
                if (thread instanceof TaskThread)
                {
                    TaskThread taskThread = (TaskThread)thread;
                    taskThread.abort("Test aborted by the user", TestResult.Status.NOT_AVAILABLE, true);
                }

            }
        }       
View Full Code Here

Examples of com.rabbitmq.client.Channel.abort()

  public void shouldThrowOnAlreadyClosedChannelInvocation() throws Throwable {
    mockConnection();
    Channel channel = mockChannel().proxy;
    when(channel.getCloseReason()).thenReturn(channelShutdownSignal());
    channel.close();
    channel.abort();
  }

  public void shouldHandleCancelWithNullArgs() throws Throwable {
    mockConnection();
    mockChannel().proxy.basicCancel(null);
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.