Examples of execute()


Examples of com.box.boxjavalibv2.filetransfer.BoxFileDownload.execute()

     */
    public void downloadFile(final String fileId, final File destination, final IFileTransferListener listener, BoxDefaultRequestObject requestObject)
        throws BoxRestException, BoxServerException, IllegalStateException, IOException, InterruptedException, AuthFatalFailureException {
        BoxFileDownload download = new BoxFileDownload(getConfig(), getRestClient(), fileId);
        download.setProgressListener(listener);
        download.execute(getAuth(), destination, getObjectMapper(), requestObject);
    }

    /**
     * Execute the download and return the raw InputStream. This method is not involved with download listeners and will not publish anything through download
     * listeners. Instead caller handles the InputStream as she/he wishes.
View Full Code Here

Examples of com.box.boxjavalibv2.filetransfer.BoxFileUpload.execute()

     */

    public BoxFile uploadFile(final BoxFileUploadRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException,
        InterruptedException {
        BoxFileUpload upload = new BoxFileUpload(getConfig());
        return upload.execute(this, requestObject);
    }

    /**
     * Copy a file.
     *
 
View Full Code Here

Examples of com.buschmais.cdo.api.Query.execute()

    private void runQueryUntilResultIsZero(String deleteNodesAndRels) {
        beginTransaction();
        Query deleteNodesAndRelQuery = cdoManager.createQuery(deleteNodesAndRels, DeletedCount.class);
        Long result;
        do {
            result = ((DeletedCount) deleteNodesAndRelQuery.execute().getSingleResult()).getDeleted();
        } while (result > 0);
        commitTransaction();
    }

    @Override
View Full Code Here

Examples of com.buschmais.cdo.impl.query.CdoQueryImpl.execute()

        query.withParameter(usingThisAs, instanceManager.getInstance(entity));
        List<ResultOf.Parameter> parameters = resultOfMethodMetadata.getParameters();
        for (int i = 0; i < parameters.size(); i++) {
            query.withParameter(parameters.get(i).value(), args[i]);
        }
        Query.Result<?> result = query.execute();
        if (resultOfMethodMetadata.isSingleResult()) {
            return result.hasResult() ? result.getSingleResult() : null;
        }
        return result;
    }
View Full Code Here

Examples of com.buschmais.jqassistant.core.analysis.api.Analyzer.execute()

        reportWriters.add(xmlReportWriter);
        try {
            CompositeReportWriter reportWriter = new CompositeReportWriter(reportWriters);
            Analyzer analyzer = new AnalyzerImpl(store, reportWriter, getLog());
            try {
                analyzer.execute(ruleSet);
            } catch (AnalysisException e) {
                throw new RuntimeException("Analysis failed.", e);
            }
        } finally {
            IOUtils.closeQuietly(xmlReportFileWriter);
View Full Code Here

Examples of com.buschmais.jqassistant.core.analysis.impl.AnalyzerImpl.execute()

        reportWriters.add(xmlReportWriter);
        try {
            CompositeReportWriter reportWriter = new CompositeReportWriter(reportWriters);
            Analyzer analyzer = new AnalyzerImpl(store, reportWriter);
            try {
                analyzer.execute(ruleSet);
            } catch (AnalyzerException e) {
                throw new MojoExecutionException("Analysis failed.", e);
            }
        } finally {
            IOUtils.closeQuietly(xmlReportFileWriter);
View Full Code Here

Examples of com.canoo.webtest.steps.Step.execute()

      if (isReadFiltered()) {
            LOG.debug("Applying filter on reference file too");
            context.restoreResponses(referenceResponses);
            for (final Iterator iter = steps.iterator(); iter.hasNext();) {
                final Step step = (Step) iter.next();
                step.execute();
        }
            referenceResponses = context.getResponses();
          context.restoreResponses(srcResponses);
      }
View Full Code Here

Examples of com.carbonfive.db.jdbc.ScriptRunner.execute()

        InputStream inputStream = null;
        try
        {
            inputStream = script.getInputStream();
            ScriptRunner scriptRunner = new ScriptRunner(dbType);
            scriptRunner.execute(connection, new InputStreamReader(inputStream, "UTF-8"));
            Validate.isTrue(!connection.isClosed(), "JDBC Connection should not be closed.");
        }
        catch (IOException e)
        {
            throw new MigrationException("Error while reading script input stream.", e);
View Full Code Here

Examples of com.carmanconsulting.cassidy.pojo.assembly.AssemblyStep.execute()

        AssemblyStack stack = new AssemblyStack();
        for (HColumn<DynamicComposite, byte[]> column : columns) {
            Class<? extends AssemblyStep> stepType = (Class<? extends AssemblyStep>) classResolver.resolveClass((String) column.getName().get(1));
            AssemblyStep step = CassidyUtils.instantiate(stepType);
            step.initializeFromColumn(column.getValue(), classResolver);
            step.execute(stack);
        }
        return stack.pop();
    }

    @Override
View Full Code Here

Examples of com.caucho.quercus.env.Env.execute()

    if (_args.length > 0)
      env.setArgs(_args);

    try {
      env.execute();
    } catch (QuercusDieException e) {
      log.log(Level.FINER, e.toString(), e);
    } catch (QuercusExitException e) {
      log.log(Level.FINER, e.toString(), e);
    } catch (QuercusErrorException e) {
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.