Class ExecutionPlanImpl
- java.lang.Object
-
- org.apache.jackrabbit.vault.packaging.registry.impl.ExecutionPlanImpl
-
- All Implemented Interfaces:
ExecutionPlan
public class ExecutionPlanImpl extends Object implements ExecutionPlan
ExecutionPlanImpl
...
-
-
Constructor Summary
Constructors Constructor Description ExecutionPlanImpl(List<PackageTask> tasks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ExecutionPlan
execute()
@NotNull String
getId()
An id of the execution plan.List<PackageTask>
getTasks()
Retrieves the list of all tasksboolean
hasErrors()
Checks if execution of any of the tasks in the plan resulted in an error.boolean
isExecuted()
Checks if this plan has finished.
-
-
-
Constructor Detail
-
ExecutionPlanImpl
public ExecutionPlanImpl(List<PackageTask> tasks)
-
-
Method Detail
-
getTasks
public List<PackageTask> getTasks()
Description copied from interface:ExecutionPlan
Retrieves the list of all tasks- Specified by:
getTasks
in interfaceExecutionPlan
- Returns:
- the tasks.
-
getId
@NotNull public @NotNull String getId()
Description copied from interface:ExecutionPlan
An id of the execution plan.- Specified by:
getId
in interfaceExecutionPlan
- Returns:
- the id.
-
isExecuted
public boolean isExecuted()
Description copied from interface:ExecutionPlan
Checks if this plan has finished.- Specified by:
isExecuted
in interfaceExecutionPlan
- Returns:
true
if executed.
-
hasErrors
public boolean hasErrors()
Description copied from interface:ExecutionPlan
Checks if execution of any of the tasks in the plan resulted in an error. Only returns a valid result in caseExecutionPlan.isExecuted()
returnstrue
. The concrete errors must be looked up fromExecutionPlan.getTasks()
.- Specified by:
hasErrors
in interfaceExecutionPlan
- Returns:
true
if it has errors.
-
execute
@NotNull public @NotNull ExecutionPlan execute() throws IOException, PackageException
- Throws:
IOException
PackageException
-
-