|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.chains.ChainStageResultImpl
public class ChainStageResultImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
ChainStageResultImpl()
|
|
ChainStageResultImpl(String name,
String description,
boolean manual,
ChainResultsSummary chainResult)
|
Method Summary | |
---|---|
boolean |
addBuildResult(BuildResultsSummary buildResult)
Adds a BuildResultsSummary and sets the relationship to the ChainResultsSummary |
Set<BuildResultsSummary> |
getBuildResults()
Returns all the BuildResultsSummary with this Stage result |
ChainResultsSummary |
getChainResult()
Returns the ChainResultsSummary associated with this Stage result |
String |
getDescription()
|
Collection<BuildResultsSummary> |
getFailedBuildResults()
Returns all the failed BuildResultsSummary with this Stage result |
LifeCycleState |
getLifeCycleState()
|
int |
getListPosition()
Return position of the Stage Result in the Stage Results list of Chain Result |
List<StageVariableContext> |
getManualVariables()
Get manual variables that were set before this stage started. |
String |
getName()
|
long |
getProcessingDuration()
Processing duration of stage (time of longest job in stage execution) |
List<BuildResultsSummary> |
getSortedBuildResults()
Returns all the BuildResultsSummary with this Stage result
ordered by build name. |
BuildState |
getState()
|
Collection<BuildResultsSummary> |
getSuccessfulBuildResults()
Returns all the successful BuildResultsSummary with this Stage result |
boolean |
isCompleted()
|
boolean |
isFailed()
|
boolean |
isFinished()
|
boolean |
isManual()
Checks if result as manual (at the time of result creation) Manual means stage execution is hold and waits for user interaction |
boolean |
isNotBuilt()
Checks if the stage has unbuilt jobs inside it |
boolean |
isPending()
|
boolean |
isRestartable()
Checks if plan nas been failed and could be restarted on the stage where failed |
boolean |
isRunnable()
Checks if current stage if first manual stage waiting for execution (chain is completed on previous stage and waiting for this stage to execute) |
boolean |
isSuccessful()
|
boolean |
removeBuildResult(BuildResultsSummary buildResult)
Removes a BuildResultsSummary |
void |
setBuildResults(Set<BuildResultsSummary> buildResults)
|
void |
setChainResult(ChainResultsSummary chainResult)
Sets the ChainResultsSummary associated with this Stage result |
void |
setDescription(String description)
|
void |
setListPosition(int index)
|
void |
setManual(boolean manual)
Marks result as optional (at the time of result creation) Manual means stage execution is hold and waits for user interaction |
void |
setManualVariables(List<StageVariableContext> manualVariables)
|
void |
setName(String name)
|
void |
setProcessingDuration(long processingDuration)
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
equals, getId, hashCode, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Constructor Detail |
---|
public ChainStageResultImpl(String name, String description, boolean manual, ChainResultsSummary chainResult)
public ChainStageResultImpl()
Method Detail |
---|
@NotNull public String getName()
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(@NotNull String name)
setName
in interface Describable
@Nullable public String getDescription()
getDescription
in interface DescriptionProvider
public void setDescription(@Nullable String description)
setDescription
in interface Describable
public boolean isManual()
ChainStageResult
isManual
in interface ChainStageResult
public void setManual(boolean manual)
ChainStageResult
setManual
in interface ChainStageResult
public long getProcessingDuration()
ChainStageResult
getProcessingDuration
in interface ChainStageResult
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ChainStageResult
@NotNull public ChainResultsSummary getChainResult()
ChainStageResult
ChainResultsSummary
associated with this Stage result
getChainResult
in interface ChainStageResult
public void setChainResult(@NotNull ChainResultsSummary chainResult)
ChainStageResult
ChainResultsSummary
associated with this Stage result
setChainResult
in interface ChainStageResult
@NotNull public Set<BuildResultsSummary> getBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage result
getBuildResults
in interface ChainStageResult
@NotNull public List<BuildResultsSummary> getSortedBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage result
ordered by build name.
WARNING: Dont use in performance critical situations.
getSortedBuildResults
in interface ChainStageResult
@NotNull public Collection<BuildResultsSummary> getFailedBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage result
getFailedBuildResults
in interface ChainStageResult
@NotNull public Collection<BuildResultsSummary> getSuccessfulBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage result
getSuccessfulBuildResults
in interface ChainStageResult
public void setBuildResults(@NotNull Set<BuildResultsSummary> buildResults)
public boolean addBuildResult(@NotNull BuildResultsSummary buildResult)
ChainStageResult
BuildResultsSummary
and sets the relationship to the ChainResultsSummary
addBuildResult
in interface ChainStageResult
public boolean removeBuildResult(@NotNull BuildResultsSummary buildResult)
ChainStageResult
BuildResultsSummary
removeBuildResult
in interface ChainStageResult
public boolean isPending()
isPending
in interface ChainStageResult
public boolean isNotBuilt()
ChainStageResult
isNotBuilt
in interface ChainStageResult
public boolean isCompleted()
isCompleted
in interface ChainStageResult
public boolean isFinished()
isFinished
in interface ChainStageResult
public boolean isSuccessful()
isSuccessful
in interface ChainStageResult
public boolean isFailed()
isFailed
in interface ChainStageResult
public boolean isRunnable()
ChainStageResult
isRunnable
in interface ChainStageResult
public boolean isRestartable()
ChainStageResult
isRestartable
in interface ChainStageResult
public BuildState getState()
getState
in interface ChainStageResult
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ChainStageResult
public int getListPosition()
public void setListPosition(int index)
public List<StageVariableContext> getManualVariables()
ChainStageResult
getManualVariables
in interface ChainStageResult
public void setManualVariables(@NotNull List<StageVariableContext> manualVariables)
setManualVariables
in interface ChainStageResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |