Package nz.org.riskscape.engine.pipeline
Interface PipelineProblems
- All Superinterfaces:
ProblemFactory
Factory for producing problems that involve pipelines or pipeline steps.
See also ArgsProblems
for dealing with step argument problems.
-
Method Summary
Modifier and TypeMethodDescriptioncannotRealize
(Class<?> thing) cannotRealize
(NamedStep step) Assigned to the result ofas the parent problem
.cycleDetected
(String offendingLink, int lineNo, String offendingDeclaration, int firstOccurenceLineNo) There was a cycle in your pipelineProblem associated with anExecutionException
failedDependencies
(String dependentStepName) Step could not be realized because of failed dependenciesstatic PipelineProblems
get()
namedInputUnknown
(Step step, String inputName, List<String> supportedInputs) Attempt to chain to a named input that doesn't exist on the target step.outOfStorage
(String storageLocation, long amountFree) Attached to an OutOfStorageExceptionstepRedefinition
(String stepName, int originalSourceLine, int redefinedSourceLine) The pipeline contains two steps with the same name.
-
Method Details
-
get
-
cannotRealize
Assigned to the result of
as the parent problem
. Produces message: "Could not realize" -
cannotRealize
-
failedDependencies
Step could not be realized because of failed dependencies
-
namedInputUnknown
Attempt to chain to a named input that doesn't exist on the target step. Produces message:
has no input named ' '. Known input names are -
executionFailed
Problem executionFailed()Problem associated with an
ExecutionException
-
outOfStorage
Attached to an OutOfStorageException
-
cycleDetected
Problem cycleDetected(String offendingLink, int lineNo, String offendingDeclaration, int firstOccurenceLineNo) There was a cycle in your pipeline
- Parameters:
offendingLink
- the link in the pipeline that when added caused the cycle, e.g. foo() -> bar()lineNo
- the line the link was added on, uses the location of the->
tokenoffendingDeclaration
- The->
and step declaration on the rhs of the link which if removed will remove the cyclefirstOccurenceLineNo
- the line number where we first saw the offendingDeclaration
-
stepRedefinition
The pipeline contains two steps with the same name.
- Parameters:
stepName
- the name that is being reusedoriginalSourceLine
- the line number that stepName was first definedredefinedSourceLine
- the line number that is attempting to redefine stepName
-