Package org.mapfish.print.processor
Class ProcessorGraphNode<IN,OUT>
java.lang.Object
org.mapfish.print.processor.ProcessorGraphNode<IN,OUT>
Represents one node in the Processor dependency graph (
ProcessorDependencyGraph
).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A ForkJoinTask that will run the processor and all of its dependencies. -
Constructor Summary
ConstructorsConstructorDescriptionProcessorGraphNode
(Processor<IN, OUT> processor, com.codahale.metrics.MetricRegistry metricRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a dependency to this node.createTask
(ProcessorExecutionContext execContext) Create a ForkJoinTask for running in a fork join pool.Create a set containing all the processor at the current node and the entire subgraph.Return input mapper from processor.getName()
Get the output mapper from processor.Processor<?,
?> toString()
void
toString
(StringBuilder builder, int indent, String parent) Create a string representing this node.
-
Constructor Details
-
Method Details
-
getProcessor
-
addDependency
Add a dependency to this node.- Parameters:
node
- the dependency to add.
-
createTask
public Optional<ProcessorGraphNode.ProcessorNodeForkJoinTask<IN,OUT>> createTask(@Nonnull ProcessorExecutionContext execContext) Create a ForkJoinTask for running in a fork join pool.- Parameters:
execContext
- the execution context, used for tracking certain aspects of the execution.- Returns:
- a task ready to be submitted to a fork join pool.
-
getOutputMapper
Get the output mapper from processor. -
getInputMapper
Return input mapper from processor. -
toString
Create a string representing this node.- Parameters:
builder
- the builder to add the string to.indent
- the number of steps of indent for this nodeparent
- the parent node
-
toString
-
getName
-
getAllProcessors
Create a set containing all the processor at the current node and the entire subgraph.
-