@ProviderType public interface ExecutionPlanBuilder
Modifier and Type | Method and Description |
---|---|
PackageTaskBuilder |
addTask()
Adds a new task to this builder.
|
ExecutionPlan |
execute()
builds an executes the plan synchronously.
|
ExecutionPlanBuilder |
load(java.io.InputStream in)
Loads the tasks from a serialized plan and replaces the plans already in this builder.
|
java.util.Set<PackageId> |
preview()
Triggers Validation and returns PackageIds of all packages to be installed
by this builder
|
ExecutionPlanBuilder |
save(java.io.OutputStream out)
Serializes the tasks of this plan.
|
ExecutionPlanBuilder |
validate()
Validates this plan.
|
ExecutionPlanBuilder |
with(ProgressTrackerListener listener)
Sets the progress tracker listener for this plan.
|
ExecutionPlanBuilder |
with(Session session)
Sets the JCR session for this execution plan.
|
ExecutionPlanBuilder |
with(java.util.Set<PackageId> externalPackages)
Sets packages handled externally ahead of execution for prevalidation of plan
|
@Nonnull ExecutionPlanBuilder load(@Nonnull java.io.InputStream in) throws java.io.IOException
in
- input stream to the data.java.io.IOException
- if an I/O error occurrs.@Nonnull ExecutionPlanBuilder save(@Nonnull java.io.OutputStream out) throws java.io.IOException, PackageException
out
- the output streamjava.io.IOException
- if an I/O error occurrs.PackageException
- if this builder does not have valid tasks.@Nonnull PackageTaskBuilder addTask()
@Nonnull ExecutionPlanBuilder validate() throws java.io.IOException, PackageException
java.io.IOException
- if an I/O error occurrs.PackageException
- if the plan is not valid.@Nonnull ExecutionPlanBuilder with(@Nonnull Session session)
session
- the session@Nonnull ExecutionPlanBuilder with(@Nonnull ProgressTrackerListener listener)
listener
- the listener@Nonnull ExecutionPlanBuilder with(@Nonnull java.util.Set<PackageId> externalPackages)
externalPackages
- Set of package ids handled by other builder@Nonnull java.util.Set<PackageId> preview() throws java.io.IOException, PackageException
java.io.IOException
- if an I/O error occurrs.PackageException
- if the plan is not valid.@Nonnull ExecutionPlan execute() throws java.io.IOException, PackageException
java.io.IOException
- if an I/O error occurrs.PackageException
- if a package operation fails.Copyright © 2010 - 2020 Adobe. All Rights Reserved