|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pipeline.validation.SimplePipelineValidator
public class SimplePipelineValidator
This is a simple default implementation of the PipelineValidator interface that checks stage and branch connectivity. It assumes that any un-annotated stage simply passes data through and can accept any type of object (as though it were annotated with @ConsumedTypes({Object.class}) and @ProducesConsumed.
| Constructor Summary | |
|---|---|
SimplePipelineValidator()
Creates a new instance of PipelineValidator |
|
| Method Summary | |
|---|---|
List<ValidationFailure> |
validate(Pipeline pipeline)
This method validates the entire structure of the pipeline, ensuring that the data produced by each stage can be consumed by the subsequent stage and/or relevant branch pipelines. |
List<ValidationFailure> |
validateAddBranch(Pipeline pipeline,
String branchKey,
Pipeline branch)
Validate whether or not the specified branch pipeline can be added with the specified key. |
List<ValidationFailure> |
validateAddStage(Pipeline pipeline,
Stage stage,
StageDriverFactory driverFactory)
Validate whether or not a stage can be added to the pipeline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePipelineValidator()
| Method Detail |
|---|
public List<ValidationFailure> validate(Pipeline pipeline)
validate in interface PipelineValidatorpipeline - The pipeline to be validated
public List<ValidationFailure> validateAddStage(Pipeline pipeline,
Stage stage,
StageDriverFactory driverFactory)
validateAddStage in interface PipelineValidatorpipeline - The pipeline to which the stage is being addedstage - The stage to be addeddriverFactory - the StageDriverFactory used to create a driver for the stage
public List<ValidationFailure> validateAddBranch(Pipeline pipeline,
String branchKey,
Pipeline branch)
validateAddBranch in interface PipelineValidatorpipeline - The pipeline to which the branch is being addedbranchKey - The identifier for the newly added branchbranch - The branch pipeline being added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||