Examples of Run


Examples of hudson.model.Run

    public PostBuildNotifier(String name) {
        this.name = name;
    }

    protected boolean didBranchRecover(DynamicBuild build, BuildListener listener) {
        Run r = build.getPreviousFinishedBuildOfSameBranch(listener);
        return r != null && r.getResult().equals(Result.FAILURE);
    }
View Full Code Here

Examples of hudson.model.Run

        //      we should find a table

        //      Inside that table, there should be the following rows:
        //           org.jvnet.hudson.examples.small   0ms   0 -1 0   3
        //          org.jvnet.hudson.examples.small.deep   4ms 0 0 0  1
        Run theRun = proj.getBuildByNumber(7);
        assertTestResultsAsExpected(wc, theRun, "/testReport",
                "org.jvnet.hudson.examples.small", "0 ms", "SUCCESS",
                /* total tests expected, diff */ 3, 0,
                /* fail count expected, diff */ 0, -1,
                /* skip count expected, diff */ 0, 0);
View Full Code Here

Examples of hudson.model.Run

        }
        assertNotNull("We should have a project named " + TEST_PROJECT_WITH_HISTORY, proj);

        // Validate that there are test results where I expect them to be:
        HudsonTestCase.WebClient wc = new HudsonTestCase.WebClient();
        Run theRun = proj.getBuildByNumber(4);
        assertTestResultsAsExpected(wc, theRun, "/testReport",
                        "org.jvnet.hudson.examples.small", "12 ms", "FAILURE",
                        /* total tests expected, diff */ 3, 0,
                        /* fail count expected, diff */ 1, 0,
                        /* skip count expected, diff */ 0, 0);
View Full Code Here

Examples of jcomicdownloader.module.Run

                            Flag.allowDownloadFlag = true;

                            String nowState = "下載進度:" + downloadCount + " / " + Common.getTrueCountFromStrings( checkStrings );
                            downTableModel.setValueAt( nowState, i, DownTableEnum.STATE );
                            // 啟動下載
                            Run mainRun = new Run( urlStrings[j], volumeStrings[j], downTableModel.getValueAt( i, DownTableEnum.TITLE ).toString(),
                                                   RunModeEnum.DOWNLOAD_MODE );
                            mainRun.run();
                            downloadCount++;
                        }
                    }

                    if ( Run.isAlive )
View Full Code Here

Examples of lupos.datastructures.sort.run.Run

      }

      final Date start = new Date();
      System.out.println("\n"+t+": Start processing:"+start+"\n");

      final Run result = algo.sort(new BufferedInputStream(new FileInputStream(args[1])), args[2]);

      // just access all elements in the bag by iterating one time through
      final Iterator<String> it = result.iterator();
      long i=0;
      while(it.hasNext()){
        it.next();
        i++;
        // System.out.println((++i)+":"+it.next());
      }
      result.release();
      final Date end = new Date();

      System.out.println("\n"+t+": End processing:"+end);
      System.out.println("\nNumber of sorted RDF terms/Strings:"+i);
      System.out.println("Number of runs swapped to disk:" + algo.getNumberOfRunsOnDisk());
View Full Code Here

Examples of lupos.datastructures.sort.run.Run

      System.err.println(e);
      e.printStackTrace();
    }

    // final merge phase: merge all runs (which are stored on disk)
    Run result;
    if(this.runsOnDisk.size()==0){
      System.err.println("No runs there to be merged!");
      return null;
    } else if(this.runsOnDisk.size()==1){
      // already merge in main memory?
View Full Code Here

Examples of lupos.datastructures.sort.run.Run

    @Override
    public void run(){
      try {
        while(true){
          Run runToBeSwapped = this.initialRunsLevel0.get();
          if(runToBeSwapped==null){
            break;
          }
          final Run runOnDisk = runToBeSwapped.swapRun();
          runToBeSwapped = null;
          System.gc();
          ExternalSorter.this.runsOnDisk.add(runOnDisk);
        }
      } catch (final InterruptedException e) {
View Full Code Here

Examples of lupos.datastructures.sort.run.Run

    buffer.endOfData(); // signal that all has read
    adder.join(); // wait for the adder to finish its job (=adding all elements)
    replacementSelectionDatastructure.sort();
    this.numberOfRunsOndisk = replacementSelectionDatastructure.getNewId()-1; // this is a dirty trick to determine the number of runs stored on disk (as ids are generated for each new run)
    // the final Run just must have the functionality to return the iterator from replacementSelectionDatastructure
    return new Run(){

      @Override
      public boolean add(String toBeAdded) {
        throw new UnsupportedOperationException();
      }
View Full Code Here

Examples of lupos.datastructures.sort.run.Run

    // first collect all remaining runs!
    LinkedList<Run> runstoBeFinallyMerged = new LinkedList<Run>(this.runsOnDisk);
    for(LinkedList<Run> level: levels){
      runstoBeFinallyMerged.addAll(level);
    }
    Run result;
    if(runstoBeFinallyMerged.size()==0){
      System.err.println("No runs there to be merged!");
      return null;
    } else if(runstoBeFinallyMerged.size()==1){
      // already merge in main memory?
View Full Code Here

Examples of lupos.datastructures.sort.run.Run

        while(true){
          // get as many runs to merge as specified
          Object[] bagsToMerge = this.initialRunsLevel0.get(ExternalParallelSorter.this.NUMBER_OF_RUNS_TO_JOIN, ExternalParallelSorter.this.NUMBER_OF_RUNS_TO_JOIN);
         
          if(bagsToMerge!=null && bagsToMerge.length>0){
            Run run = null;
            if(bagsToMerge.length>1){
              ArrayList<Run> toBeMerged = new ArrayList<Run>(bagsToMerge.length);
              for(Object bag: bagsToMerge){
                toBeMerged.add((Run) bag);
              }
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.