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(Session session)
Sets the JCR session for this execution plan.
|
ExecutionPlanBuilder load(java.io.InputStream in) throws java.io.IOException
in
- input stream to the data.java.io.IOException
- if an I/O error occurrs.ExecutionPlanBuilder save(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.PackageTaskBuilder addTask()
ExecutionPlanBuilder validate() throws java.io.IOException, PackageException
java.io.IOException
- if an I/O error occurrs.PackageException
- if the plan is not valid.ExecutionPlanBuilder with(Session session)
session
- the sessionjava.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.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 Systems Incorporated. All Rights Reserved"