Package org.eclipse.steady.goals
Class SequenceGoal
- java.lang.Object
-
- org.eclipse.steady.goals.AbstractGoal
-
- org.eclipse.steady.goals.AbstractAppGoal
-
- org.eclipse.steady.goals.SequenceGoal
-
- All Implemented Interfaces:
Runnable
public class SequenceGoal extends AbstractAppGoal
SequenceGoal class.
-
-
Field Summary
-
Fields inherited from class org.eclipse.steady.goals.AbstractGoal
CLASS_EXT, JAR_EXT, JAR_WAR_EXT, WAR_EXT
-
-
Constructor Summary
Constructors Constructor Description SequenceGoal()Constructor for SequenceGoal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGoal(AbstractGoal _goal)addGoal.protected voidexecuteTasks()MUST be overridden in subclasses to implement the goal-specific tasks.doublegetProgress()Returns the progress, i.e., number of completed goals divided by total number of goals.protected voidprepareExecution()Cleans the cache of theBackendConnector.-
Methods inherited from class org.eclipse.steady.goals.AbstractAppGoal
addAppPath, addAppPaths, getApplicationContext, getAppPaths, getKnownDependencies, hasAppPaths, setKnownDependencies
-
Methods inherited from class org.eclipse.steady.goals.AbstractGoal
addGoalStats, addGoalStats, addGoalStats, addGoalStats, checkPreconditions, cleanAfterExecution, executeAsync, executeSync, getConfiguration, getGoalClient, getGoalContext, getGoalType, getId, getResultObject, run, runsIn, setConfiguration, setGoalClient, setGoalContext, setObserver, skipGoalUpload, start, stop, stop, toJson, toString, upload
-
-
-
-
Method Detail
-
addGoal
public void addGoal(AbstractGoal _goal)
addGoal.
- Parameters:
_goal- aAbstractGoalobject.
-
prepareExecution
protected void prepareExecution() throws GoalConfigurationExceptionCleans the cache of theBackendConnector. CAN be overridden in subclasses to perform additional, goal-specific checks and preparations. Checks whether one or morePaths with application constructs, and one or morePaths with dependencies are available. Checks whether one or moreAbstractGoals have been added.- Overrides:
prepareExecutionin classAbstractAppGoal- Throws:
GoalConfigurationException- if any.
-
executeTasks
protected void executeTasks() throws ExceptionMUST be overridden in subclasses to implement the goal-specific tasks. CallsAbstractGoal.executeSync()for all goals that have been added to the sequence.- Specified by:
executeTasksin classAbstractGoal- Throws:
Exception- if any.
-
getProgress
public double getProgress()
Returns the progress, i.e., number of completed goals divided by total number of goals.- Returns:
- a double.
-
-