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 ExecutionPlanexecute()@NotNull StringgetId()An id of the execution plan.List<PackageTask>getTasks()Retrieves the list of all tasksbooleanhasErrors()Checks if execution of any of the tasks in the plan resulted in an error.booleanisExecuted()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:ExecutionPlanRetrieves the list of all tasks- Specified by:
getTasksin interfaceExecutionPlan- Returns:
- the tasks.
-
getId
@NotNull public @NotNull String getId()
Description copied from interface:ExecutionPlanAn id of the execution plan.- Specified by:
getIdin interfaceExecutionPlan- Returns:
- the id.
-
isExecuted
public boolean isExecuted()
Description copied from interface:ExecutionPlanChecks if this plan has finished.- Specified by:
isExecutedin interfaceExecutionPlan- Returns:
trueif executed.
-
hasErrors
public boolean hasErrors()
Description copied from interface:ExecutionPlanChecks 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:
hasErrorsin interfaceExecutionPlan- Returns:
trueif it has errors.
-
execute
@NotNull public @NotNull ExecutionPlan execute() throws IOException, PackageException
- Throws:
IOExceptionPackageException
-
-