|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChainState
In memory representation of the running Chain
state
Method Summary | |
---|---|
void |
finishStopping()
Marks the Chain as finished stopping. |
long |
getAverageDuration()
Average duration of the Chain in milliseconds |
BuildContext |
getBuildContext()
The BuildContext of the currently executing chain |
com.atlassian.bamboo.chains.ChainBuildState |
getChainBuildState(PlanResultKey planResultKey)
Gets the build state for the given buildResultKey |
java.util.Collection<com.atlassian.bamboo.chains.ChainBuildState> |
getChainBuildStates()
Gets all the ChainBuildState s for the current ChainState |
StageState |
getCurrentStage()
Gets the currently executing StageState |
int |
getCurrentStageNumber()
Returns the cardinal number of currently executed stage. |
long |
getElapsedTime()
Time taken to execute the Chain in milliseconds |
ExecutionContext |
getExecutionContext()
Stores contextual data for the current ChainState |
java.lang.String |
getName()
Get Chain name |
StageState |
getNextStage()
Get the next stage |
PlanResultKey |
getPlanResultKey()
PlanResultKey for the the Chain execution |
StageState |
getPreviousStage()
Gets the currently executing StageState |
java.util.Date |
getQueueTime()
The queue Date |
java.util.List<StageState> |
getStages()
Get all stages for Chain |
java.util.Date |
getStartDate()
The start Date |
boolean |
isCompleted()
Checks if the Chain has been completed |
boolean |
isFailed()
Checks if the Chain has failed |
boolean |
isStopping()
Checks if the Chain is stopping |
boolean |
isStopRequested()
Checks if the Chain has been requested to stop executing |
boolean |
isSuccessful()
Checks if the Chain has successfully completed |
void |
markAsStopping()
Marks the Chain as stopping |
StageState |
proceedToNextStage()
Replaces the current stage with the next stage in the queue and changes the reference to the current stage to the previous. |
void |
setStartDate(java.util.Date date)
The first call sets the start Date . |
Method Detail |
---|
@NotNull java.lang.String getName()
@NotNull PlanResultKey getPlanResultKey()
PlanResultKey
for the the Chain
execution
@NotNull java.util.List<StageState> getStages()
@Nullable com.atlassian.bamboo.chains.ChainBuildState getChainBuildState(@NotNull PlanResultKey planResultKey)
planResultKey
-
@NotNull java.util.Collection<com.atlassian.bamboo.chains.ChainBuildState> getChainBuildStates()
ChainBuildState
s for the current ChainState
@Nullable StageState getPreviousStage()
StageState
@Nullable StageState getCurrentStage()
StageState
int getCurrentStageNumber()
StageState getNextStage()
StageState proceedToNextStage()
boolean isCompleted()
Chain
has been completed
boolean isSuccessful()
Chain
has successfully completed
boolean isFailed()
Chain
has failed
boolean isStopping()
Chain
is stopping
boolean isStopRequested()
Chain
has been requested to stop executing
void markAsStopping()
Chain
as stopping
void finishStopping()
Chain
as finished stopping.
@NotNull BuildContext getBuildContext()
BuildContext
of the currently executing chain
@NotNull ExecutionContext getExecutionContext()
ChainState
long getAverageDuration()
Chain
in milliseconds
@Nullable java.util.Date getStartDate()
Date
@NotNull java.util.Date getQueueTime()
Date
void setStartDate(@NotNull java.util.Date date)
Date
. Subsequent calls have no effect.
date
- long getElapsedTime()
Chain
in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |