@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(InputStream in)
Loads the tasks from a serialized plan and replaces the plans already in this builder.
|
Set<PackageId> |
preview()
Triggers Validation and returns PackageIds of all packages to be installed
by this builder
|
ExecutionPlanBuilder |
save(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(Set<PackageId> externalPackages)
Sets packages handled externally ahead of execution for prevalidation of plan
|
@Nonnull ExecutionPlanBuilder load(@Nonnull InputStream in) throws IOException
in - input stream to the data.IOException - if an I/O error occurrs.@Nonnull ExecutionPlanBuilder save(@Nonnull OutputStream out) throws IOException, PackageException
out - the output streamIOException - if an I/O error occurrs.PackageException - if this builder does not have valid tasks.@Nonnull PackageTaskBuilder addTask()
@Nonnull ExecutionPlanBuilder validate() throws IOException, PackageException
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 Set<PackageId> externalPackages)
externalPackages - Set of package ids handled by other builder@Nonnull Set<PackageId> preview() throws IOException, PackageException
IOException - if an I/O error occurrs.PackageException - if the plan is not valid.@Nonnull ExecutionPlan execute() throws IOException, PackageException
IOException - if an I/O error occurrs.PackageException - if a package operation fails.Copyright © 2010 - 2020 Adobe. All Rights Reserved