Package org.mapfish.print.processor
Class ProcessorDependencyGraph
java.lang.Object
org.mapfish.print.processor.ProcessorDependencyGraph
Represents a graph of the processors dependencies. The root nodes can execute in parallel but
processors with dependencies must wait for their dependencies to complete before execution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal class
A ForkJoinTask that will create ForkJoinTasks from each root and run each of them. -
Method Summary
Modifier and TypeMethodDescriptioncreateTask
(Values values) Create a ForkJoinTask for running in a fork join pool.Create a set containing all the processors in the graph.Get all the names of inputs that are required to be in the Values object when this graph is executed.List<ProcessorGraphNode<?,
?>> getRoots()
toString()
void
toString
(StringBuilder builder, int indent, String parent) Create a string representing the nodes.
-
Method Details
-
createTask
Create a ForkJoinTask for running in a fork join pool.- Parameters:
values
- the values to use for getting the required inputs of the processor and putting the output in.- Returns:
- a task ready to be submitted to a fork join pool.
-
getAllRequiredAttributes
Get all the names of inputs that are required to be in the Values object when this graph is executed. -
getRoots
-
toString
-
toString
Create a string representing the nodes.- Parameters:
builder
- the builder to add the string to.indent
- the number of steps of indent for this nodeparent
- the parent node
-
getAllProcessors
Create a set containing all the processors in the graph.
-