Examples of Run


Examples of aQute.bnd.build.Run

                model.setProject(project);
            } else {
                //
                // run's in bndrun files are the bndrun + workspace
                //
                Run run = new Run(Central.getWorkspace(), resource.getParentFile(), resource);
                model.setProject(run);
            }

            ReporterLogService log = new ReporterLogService(Central.getWorkspace());
            Map<Resource,List<Wire>> wirings = resolve.resolveRequired(model, Central.getWorkspace(), bndResolver, callbacks, log);
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.Run

            request.setTaskList(new TaskList().withName(taskList));
        }
        request.setWorkflowId(startParameters.getWorkflowId());
        request.setWorkflowType(startParameters.getWorkflowType());

        Run result = service.startWorkflowExecution(request);
        WorkflowExecution execution = new WorkflowExecution().withRunId(result.getRunId()).withWorkflowId(request.getWorkflowId());

        return execution;
    }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.Run

public class AmazonSWFClientMock extends AmazonSimpleWorkflowClient {

    @Override
    public Run startWorkflowExecution(StartWorkflowExecutionRequest startWorkflowExecutionRequest) throws AmazonServiceException, AmazonClientException {
        return new Run().withRunId("run1");
    }
View Full Code Here

Examples of com.aspose.words.Run

      // Add Comment
      Comment comment = new Comment(wordDoc);
      comment.setAuthor("D.Righetto");
      comment.getParagraphs().add(new Paragraph(wordDoc));
      comment.getFirstParagraph().getRuns().add(
          new Run(wordDoc, "My Comment text !!!"));
      wordDocBuilder.getCurrentParagraph().appendChild(comment);
      // Add break
      wordDocBuilder.insertBreak(BreakType.PAGE_BREAK);
      // Add image
      String imgUrl = "http://" + request.getServerName() + ":"
View Full Code Here

Examples of com.google.caliper.Run

     * Execute full cycle: warm up, execute and publish benchmark.
     */
    public static void execute(final Class<? extends CaliperBench> klaz)
            throws Exception {
        execute("WARMUP", klaz);
        Run run = execute("REPORT", klaz);
        publish(newResult(run));
    }
View Full Code Here

Examples of com.heroku.api.request.run.Run

     * Run a one-off process on a Heroku dyno.
     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param command Bash command to run inside a dyno. See <a href="http://devcenter.heroku.com/articles/oneoff-admin-ps">One-off processes</a>.
     */
    public void run(String appName, String command) {
        connection.execute(new Run(appName, command), apiKey);
    }
View Full Code Here

Examples of com.opensymphony.async.model.Run

    public String execute() throws Exception {
        experiment = new Experiment();
        for (int i = 0; i < numRuns; i++) {
            Thread.sleep(1000);
            Run run = new Run();
            experiment.addRun(run);
        }
        experiment.setEndDate(new Date());
        experimentDao.save(experiment);
        return SUCCESS;
View Full Code Here

Examples of com.sun.faban.harness.common.Run

    }

    private void fetchNextRun(String runId, HttpServletResponse response)
            throws IOException, ClassNotFoundException {

        Run nextRun = null;
        for (;;)
            try {
                nextRun = RunQ.getHandle().fetchNextRun(runId);
                break;
            } catch (RunEntryException e) {
            }

        if (nextRun == null) { // Queue empty
            logger.warning("Fetching run " + runId + ": No longer available!");
            response.setStatus(HttpServletResponse.SC_NO_CONTENT);
            return;
        }

        // Jar up the run.
        File jarFile = null;
        jarFile = jar(nextRun);

        // Send the run jar to the output stream
        long length = jarFile.length();
        int bufferSize = 1024 * 1024 * 128; // 128MB buffer limit
        if (length < bufferSize)
            bufferSize = (int) length;

        byte[] buffer = new byte[bufferSize];

        response.setStatus(HttpServletResponse.SC_OK);
        response.setContentType("application/java-archive");
        OutputStream out = response.getOutputStream();
        FileInputStream jarIn = new FileInputStream(jarFile);
        int readSize = 0;
        while ((readSize = jarIn.read(buffer)) != -1)
            out.write(buffer, 0, readSize);

        out.flush();
        out.close();

        // Update status locally
        nextRun.updateStatus(Run.RECEIVED);

        // Clear tmp file
        jarFile.delete();
    }
View Full Code Here

Examples of de.berndsteindorff.junittca.model.Run

      tfProjectName.setText(project.getName());
      createTableHistory(project.getTestRuns());
      repaint();
    } else if (ename.equals(TcaEventCommands.UPDATERUN)) {
      Project project = model.getProject();
      Run run = project.getTestRuns().get(0);
      Result result = run.getResult();
      counterPanel.setRunValue(result.getRunCount());
      counterPanel.setIgnoredValue(result.getIgnoreCount());
      counterPanel.setOkValue(result.getRunCount()
          - result.getFailureCount());
      counterPanel.setFailureValue(result.getFailureCount());
View Full Code Here

Examples of de.berndsteindorff.junittca.model.Run

      }
    }

    @Override
    public Object getValueAt(int row, int col) {
      Run run = runs.get(row);
      if (col == 0) {
        Calendar cal = new GregorianCalendar();
        cal.setTime(run.getRunDate());
        int d = cal.get(Calendar.DAY_OF_MONTH);
        int m = cal.get(Calendar.MONTH) + 1;
        int y = cal.get(Calendar.YEAR);
        int h = cal.get(Calendar.HOUR_OF_DAY);
        int min = cal.get(Calendar.MINUTE);
        int s = cal.get(Calendar.SECOND);

        StringBuffer sb = new StringBuffer();
        sb.append(m > 9 ? (m + "/") : ("0" + m + "/"));
        sb.append(d > 9 ? (d + "/") : ("0" + d + "/"));
        sb.append("0" + (y - 2000) + " ");
        sb.append(h > 9 ? h : ("0" + h));
        sb.append(":");
        sb.append(min > 9 ? min : ("0" + min));
        sb.append(":");
        sb.append(s > 9 ? s : ("0" + s));

        return sb.toString();
      } else if (col == 1) {
        return "" + run.getClassMethods().size();
      } else if (col == 2) {
        return "" + run.getResult().getRunCount();
      } else if (col == 3) {
        return ""
            + (run.getResult().getRunCount() - run.getResult()
                .getFailureCount());
      } else if (col == 4) {
        return "" + run.getResult().getFailureCount();
      } else if (col == 5) {
        // logger.info("row: " + row);
        // logger.info("selectedRuns.length: " + selectedRuns.length);
        return selectedRuns[row];
      } else
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.