Class PipelineConnections
- java.lang.Object
-
- org.apache.manifoldcf.crawler.system.PipelineConnections
-
- All Implemented Interfaces:
IPipelineConnections,IPipelineSpecificationBasic
public class PipelineConnections extends java.lang.Object implements IPipelineConnections
Pipeline connections implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Integer,java.lang.Integer>outputConnectionLookupMapprotected java.lang.String[]outputConnectionNamesprotected IOutputConnection[]outputConnectionsprotected IPipelineSpecificationBasicspecprotected java.util.Map<java.lang.Integer,java.lang.Integer>transformationConnectionLookupMapprotected java.lang.String[]transformationConnectionNamesprotected ITransformationConnection[]transformationConnections-
Fields inherited from interface org.apache.manifoldcf.agents.interfaces.IPipelineSpecificationBasic
_rcsid
-
-
Constructor Summary
Constructors Constructor Description PipelineConnections(IPipelineSpecificationBasic spec, ITransformationConnectionManager transformationConnectionManager, IOutputConnectionManager outputConnectionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckStageOutputConnection(int stage)Check if a stage is an output stage.java.lang.IntegergetOutputConnectionIndex(int stage)Get the index of the output connection corresponding to a specific pipeline stage.java.lang.String[]getOutputConnectionNames()Get the output connection names mentioned by the IPipelineSpecification object.IOutputConnection[]getOutputConnections()Get the output connection instances mentioned by the IPipelineSpecification object.intgetOutputCount()Return the number of output connections.intgetOutputStage(int index)Given an output index, return the stage number for that output.int[]getStageChildren(int stage)Find children of a given pipeline stage.java.lang.StringgetStageConnectionName(int stage)Get the connection name for a pipeline stage.intgetStageCount()Get a count of all stages.intgetStageParent(int stage)Find parent of a given pipeline stage.java.lang.IntegergetTransformationConnectionIndex(int stage)Get the index of the transformation connection corresponding to a specific pipeline stage.java.lang.String[]getTransformationConnectionNames()Get the transformation connection names mentioned by the IPipelineSpecification object.ITransformationConnection[]getTransformationConnections()Get the transformation connection instances mentioned by the IPipelineSpecification object.
-
-
-
Field Detail
-
spec
protected final IPipelineSpecificationBasic spec
-
transformationConnectionNames
protected final java.lang.String[] transformationConnectionNames
-
transformationConnections
protected final ITransformationConnection[] transformationConnections
-
outputConnectionNames
protected final java.lang.String[] outputConnectionNames
-
outputConnections
protected final IOutputConnection[] outputConnections
-
transformationConnectionLookupMap
protected final java.util.Map<java.lang.Integer,java.lang.Integer> transformationConnectionLookupMap
-
outputConnectionLookupMap
protected final java.util.Map<java.lang.Integer,java.lang.Integer> outputConnectionLookupMap
-
-
Constructor Detail
-
PipelineConnections
public PipelineConnections(IPipelineSpecificationBasic spec, ITransformationConnectionManager transformationConnectionManager, IOutputConnectionManager outputConnectionManager) throws ManifoldCFException
- Throws:
ManifoldCFException
-
-
Method Detail
-
getStageCount
public int getStageCount()
Get a count of all stages.- Specified by:
getStageCountin interfaceIPipelineSpecificationBasic- Returns:
- the total count of all stages.
-
getStageChildren
public int[] getStageChildren(int stage)
Find children of a given pipeline stage. Pass -1 to find the children of the root stage.- Specified by:
getStageChildrenin interfaceIPipelineSpecificationBasic- Parameters:
stage- is the stage index to get the children of.- Returns:
- the pipeline stages that represent those children.
-
getStageParent
public int getStageParent(int stage)
Find parent of a given pipeline stage. Returns -1 if there's no parent (it's the root).- Specified by:
getStageParentin interfaceIPipelineSpecificationBasic- Parameters:
stage- is the stage index to get the parent of.- Returns:
- the pipeline stage that is the parent, or -1.
-
getStageConnectionName
public java.lang.String getStageConnectionName(int stage)
Get the connection name for a pipeline stage.- Specified by:
getStageConnectionNamein interfaceIPipelineSpecificationBasic- Parameters:
stage- is the stage to get the connection name for.- Returns:
- the connection name for that stage.
-
checkStageOutputConnection
public boolean checkStageOutputConnection(int stage)
Check if a stage is an output stage.- Specified by:
checkStageOutputConnectionin interfaceIPipelineSpecificationBasic- Parameters:
stage- is the stage to check.- Returns:
- true if the stage represents an output connection.
-
getOutputCount
public int getOutputCount()
Return the number of output connections.- Specified by:
getOutputCountin interfaceIPipelineSpecificationBasic- Returns:
- the total number of output connections in this specification.
-
getOutputStage
public int getOutputStage(int index)
Given an output index, return the stage number for that output.- Specified by:
getOutputStagein interfaceIPipelineSpecificationBasic- Parameters:
index- is the output connection index.- Returns:
- the stage number.
-
getTransformationConnectionNames
public java.lang.String[] getTransformationConnectionNames()
Description copied from interface:IPipelineConnectionsGet the transformation connection names mentioned by the IPipelineSpecification object.- Specified by:
getTransformationConnectionNamesin interfaceIPipelineConnections
-
getTransformationConnections
public ITransformationConnection[] getTransformationConnections()
Description copied from interface:IPipelineConnectionsGet the transformation connection instances mentioned by the IPipelineSpecification object.- Specified by:
getTransformationConnectionsin interfaceIPipelineConnections
-
getOutputConnectionNames
public java.lang.String[] getOutputConnectionNames()
Description copied from interface:IPipelineConnectionsGet the output connection names mentioned by the IPipelineSpecification object.- Specified by:
getOutputConnectionNamesin interfaceIPipelineConnections
-
getOutputConnections
public IOutputConnection[] getOutputConnections()
Description copied from interface:IPipelineConnectionsGet the output connection instances mentioned by the IPipelineSpecification object.- Specified by:
getOutputConnectionsin interfaceIPipelineConnections
-
getTransformationConnectionIndex
public java.lang.Integer getTransformationConnectionIndex(int stage)
Description copied from interface:IPipelineConnectionsGet the index of the transformation connection corresponding to a specific pipeline stage.- Specified by:
getTransformationConnectionIndexin interfaceIPipelineConnections
-
getOutputConnectionIndex
public java.lang.Integer getOutputConnectionIndex(int stage)
Description copied from interface:IPipelineConnectionsGet the index of the output connection corresponding to a specific pipeline stage.- Specified by:
getOutputConnectionIndexin interfaceIPipelineConnections
-
-