hudson.matrix
Class DefaultMatrixExecutionStrategyImpl

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<MatrixExecutionStrategy>
      extended by hudson.matrix.MatrixExecutionStrategy
          extended by hudson.matrix.DefaultMatrixExecutionStrategyImpl
All Implemented Interfaces:
ExtensionPoint, Describable<MatrixExecutionStrategy>

public class DefaultMatrixExecutionStrategyImpl
extends MatrixExecutionStrategy

MatrixExecutionStrategy that captures historical behavior.

This class is somewhat complex because historically this wasn't an extension point and so people tried to put various logics that cover different use cases into one place. Going forward, people are encouraged to create subtypes to implement a custom logic that suits their needs.

Since:
1.456
Author:
Kohsuke Kawaguchi

Nested Class Summary
static class DefaultMatrixExecutionStrategyImpl.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
DefaultMatrixExecutionStrategyImpl()
           
DefaultMatrixExecutionStrategyImpl(Boolean runSequentially, boolean hasTouchStoneCombinationFilter, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter)
           
DefaultMatrixExecutionStrategyImpl(boolean runSequentially, String touchStoneCombinationFilter, Result touchStoneResultCondition, MatrixConfigurationSorter sorter)
           
 
Method Summary
 boolean getHasTouchStoneCombinationFilter()
           
 MatrixConfigurationSorter getSorter()
           
 String getTouchStoneCombinationFilter()
           
 Result getTouchStoneResultCondition()
           
 boolean isRunSequentially()
          If true, MatrixRuns are run sequentially, instead of running in parallel.
 Result run(MatrixBuild.MatrixBuildExecution execution)
           
 void setRunSequentially(boolean runSequentially)
           
 void setSorter(MatrixConfigurationSorter sorter)
           
 void setTouchStoneCombinationFilter(String touchStoneCombinationFilter)
           
 void setTouchStoneResultCondition(Result touchStoneResultCondition)
           
 
Methods inherited from class hudson.matrix.MatrixExecutionStrategy
getDescriptor, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMatrixExecutionStrategyImpl

@DataBoundConstructor
public DefaultMatrixExecutionStrategyImpl(Boolean runSequentially,
                                                               boolean hasTouchStoneCombinationFilter,
                                                               String touchStoneCombinationFilter,
                                                               Result touchStoneResultCondition,
                                                               MatrixConfigurationSorter sorter)

DefaultMatrixExecutionStrategyImpl

public DefaultMatrixExecutionStrategyImpl(boolean runSequentially,
                                          String touchStoneCombinationFilter,
                                          Result touchStoneResultCondition,
                                          MatrixConfigurationSorter sorter)

DefaultMatrixExecutionStrategyImpl

public DefaultMatrixExecutionStrategyImpl()
Method Detail

getHasTouchStoneCombinationFilter

public boolean getHasTouchStoneCombinationFilter()

isRunSequentially

public boolean isRunSequentially()
If true, MatrixRuns are run sequentially, instead of running in parallel. TODO: this should be subsumed by ResourceController.


setRunSequentially

public void setRunSequentially(boolean runSequentially)

getTouchStoneCombinationFilter

public String getTouchStoneCombinationFilter()

setTouchStoneCombinationFilter

public void setTouchStoneCombinationFilter(String touchStoneCombinationFilter)

getTouchStoneResultCondition

public Result getTouchStoneResultCondition()

setTouchStoneResultCondition

public void setTouchStoneResultCondition(Result touchStoneResultCondition)

getSorter

public MatrixConfigurationSorter getSorter()

setSorter

public void setSorter(MatrixConfigurationSorter sorter)

run

public Result run(MatrixBuild.MatrixBuildExecution execution)
           throws InterruptedException,
                  IOException
Overrides:
run in class MatrixExecutionStrategy
Throws:
InterruptedException
IOException


Copyright © 2004-2013. All Rights Reserved.