APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.jpackage.internal.pipeline

public final Class TaskPipelineBuilder

extends Object
Class Inheritance
Static Imports
jdk.jpackage.internal.pipeline.FixedDAG.getIncomingEdges, .FixedDAG.getNoOutgoingEdges

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record
private static record
public class

Field Summary

Modifier and TypeField and Description
private Executor
private final FixedDAG.Builder<Callable<Void>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TaskPipelineBuilder
public Callable<Void>
public TaskPipelineBuilder
public TaskPipelineBuilder
public TaskPipelineBuilder
public TaskPipelineBuilder
public TaskPipelineBuilder.TaskBuilder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

executorback to summary
private Executor executor
taskGraphBuilderback to summary
private final FixedDAG.Builder<Callable<Void>> taskGraphBuilder

Constructor Detail

TaskPipelineBuilderback to summary
public TaskPipelineBuilder()

Method Detail

addTaskback to summary
public TaskPipelineBuilder addTask(Callable<Void> task)
createback to summary
public Callable<Void> create()
executorback to summary
public TaskPipelineBuilder executor(Executor v)
linkTasksback to summary
public TaskPipelineBuilder linkTasks(Callable<Void> tail, Callable<Void> head)
linkTasksback to summary
public TaskPipelineBuilder linkTasks(DirectedEdge<Callable<Void>> edge)
sequentialExecutorback to summary
public TaskPipelineBuilder sequentialExecutor()
taskback to summary
public TaskPipelineBuilder.TaskBuilder task(Callable<Void> task)
jdk.jpackage.internal.pipeline back to summary

private final Record TaskPipelineBuilder.ParallelWrapperTask

extends Record
implements Callable<Void>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Record Components
taskGraph:FixedDAG<Callable<Void>> 
executor:Executor 

Field Summary

Modifier and TypeField and Description
private final Executor
executor

Record Component accessed by executor().

private final FixedDAG<Callable<Void>>
taskGraph

Record Component accessed by taskGraph().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Void
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public Executor
executor()

Record Component getter of executor.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public FixedDAG<Callable<Void>>
taskGraph()

Record Component getter of taskGraph.

private static Runnable
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

executorback to summary
private final Executor executor

Record Component accessed by executor().

taskGraphback to summary
private final FixedDAG<Callable<Void>> taskGraph

Record Component accessed by taskGraph().

Constructor Detail

ParallelWrapperTaskback to summary
pack-priv ParallelWrapperTask(FixedDAG<Callable<Void>> taskGraph, Executor executor)

Method Detail

callback to summary
public Void call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
executorback to summary
public Executor executor()

Record Component getter of executor.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

taskGraphback to summary
public FixedDAG<Callable<Void>> taskGraph()

Record Component getter of taskGraph.

toRunnableback to summary
private static Runnable toRunnable(Callable<Void> callable)
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jpackage.internal.pipeline back to summary

private final Record TaskPipelineBuilder.SequentialWrapperTask

extends Record
implements Callable<Void>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Record Components
tasks:List<Callable<Void>> 

Field Summary

Modifier and TypeField and Description
private final List<Callable<Void>>
tasks

Record Component accessed by tasks().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Void
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Callable<Void>>
tasks()

Record Component getter of tasks.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

tasksback to summary
private final List<Callable<Void>> tasks

Record Component accessed by tasks().

Constructor Detail

SequentialWrapperTaskback to summary
pack-priv SequentialWrapperTask(List<Callable<Void>> tasks)

Method Detail

callback to summary
public Void call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

tasksback to summary
public List<Callable<Void>> tasks()

Record Component getter of tasks.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jpackage.internal.pipeline back to summary

public final Class TaskPipelineBuilder.TaskBuilder

extends TaskSpecBuilder<Callable<Void>>
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public TaskPipelineBuilder
add()

public TaskPipelineBuilder.TaskBuilder
public TaskPipelineBuilder.TaskBuilder
public TaskPipelineBuilder.TaskBuilder
public TaskPipelineBuilder.TaskBuilder
Inherited from jdk.jpackage.internal.pipeline.TaskSpecBuilder:
createLinkstask

Constructor Detail

TaskBuilderback to summary
pack-priv TaskBuilder(Callable<Void> task)

Method Detail

addback to summary
public TaskPipelineBuilder add()
addDependenciesback to summary
public TaskPipelineBuilder.TaskBuilder addDependencies(Collection<? extends Callable<Void>> v)

Overrides jdk.jpackage.internal.pipeline.TaskSpecBuilder.addDependencies.

Annotations
@Override
addDependencyback to summary
public TaskPipelineBuilder.TaskBuilder addDependency(Callable<Void> v)

Overrides jdk.jpackage.internal.pipeline.TaskSpecBuilder.addDependency.

Annotations
@Override
addDependentback to summary
public TaskPipelineBuilder.TaskBuilder addDependent(Callable<Void> v)

Overrides jdk.jpackage.internal.pipeline.TaskSpecBuilder.addDependent.

Annotations
@Override
addDependentsback to summary
public TaskPipelineBuilder.TaskBuilder addDependents(Collection<? extends Callable<Void>> v)

Overrides jdk.jpackage.internal.pipeline.TaskSpecBuilder.addDependents.

Annotations
@Override