Examples of Commit()


Examples of org.apache.camel.component.file.strategy.FileProcessStrategy.commit()

                if (LOG.isDebugEnabled()) {
                    LOG.debug("About to process file:  " + file + " using exchange: " + exchange);
                }
                if (processStrategy.begin(endpoint, exchange, file)) {
                    getProcessor().process(exchange);
                    processStrategy.commit(endpoint, exchange, file);
                }
                else {
                    if (LOG.isDebugEnabled()) {
                        LOG.debug(endpoint + " cannot process file: " + file);
                    }

Examples of org.apache.camel.impl.DefaultRouteContext.commit()

                RouteDefinition route = routeContext.getRoute();
                throw new FailedToCreateRouteException(route.getId(), route.toString(), output.toString(), e);
            }
        }

        routeContext.commit();
        return routeContext;
    }
}

Examples of org.apache.camel.impl.RouteContext.commit()

        for (ProcessorType output : outputs) {
            output.addRoutes(routeContext, routes);
        }

        routeContext.commit();
    }

    @Override
    protected void configureChild(ProcessorType output) {
        if (isInheritErrorHandler()) {

Examples of org.apache.camel.spi.RouteContext.commit()

                RouteDefinition route = routeContext.getRoute();
                throw new FailedToCreateRouteException(route.getId(), route.toString(), output.toString(), e);
            }
        }

        routeContext.commit();
        return routeContext;
    }
}

Examples of org.apache.cayenne.access.Transaction.commit()

        Transaction.bindThreadTransaction(tx);
        try {

            T result = op.perform();

            tx.commit();

            return result;

        } catch (Exception ex) {
            tx.setRollbackOnly();

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.DocumentVersion.commit()

        if (null != properties && null != properties.getProperties())
            ((DocumentVersionImpl)pwc).setCustomProperties(properties.getProperties());

        pwc.setCheckinComment(checkinComment);
        pwc.commit(isMajor);
    }

    public DocumentVersion checkOut(ContentStream content, String user) {
        if (fIsCheckedOut) {
            throw new CmisConstraintException("Error: Can't checkout, Document " + getId() + " is already checked out.");

Examples of org.apache.cocoon.acting.ModularDatabaseAccess.OutputHelper.commit()

            }
           
            if (conn.getAutoCommit()==false)
                conn.commit();
            OutputHelper oh = (OutputHelper) outputMapping.select( (String) defaultModeNames.get( MODE_OUTPUT ) );
            oh.commit( null, request );
            outputMapping.release( oh );
        } catch (Exception e) {
            if ( conn != null ) {
                try {
                    if (getLogger().isDebugEnabled())

Examples of org.apache.cocoon.components.modules.output.OutputModule.commit()

            try {
                outputSelector=(ComponentSelector) this.manager.lookup(OUTPUT_MODULE_SELECTOR);
                if (outputMode != null && outputSelector != null && outputSelector.hasComponent(outputMode)){
                    output = (OutputModule) outputSelector.select(outputMode);
                }
                output.commit( null, objectModel );
            } catch (Exception e) {
                if (getLogger().isWarnEnabled()) {
                    getLogger().warn("Could not select output mode "
                                     + outputMode + ":" + e.getMessage());
                }

Examples of org.apache.curator.TimeTrace.commit()

                {
                    try
                    {
                        TimeTrace trace = client.startTracer("EventListener");
                        listener.eventReceived(CuratorFrameworkImpl.this, curatorEvent);
                        trace.commit();
                    }
                    catch ( Exception e )
                    {
                        logError("Event listener threw exception", e);
                    }

Examples of org.apache.curator.framework.api.transaction.CuratorTransactionFinal.commit()

    CuratorTransactionFinal tx =
        ZooKeeperUtils.buildAtomicRecursiveDelete(mZKClient, mZKClient.inTransaction(), "/foo");
    mZKClient.create().forPath("/foo/new-child");

    try {
      tx.commit();
    } catch (NotEmptyException nee) {
      // expected
    }
    Assert.assertNotNull(mZKClient.checkExists().forPath("/foo"));
  }
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.