Package com.atlassian.bamboo.event
Class BuildHungEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.atlassian.event.Event
-
- com.atlassian.bamboo.event.BuildEvent
-
- com.atlassian.bamboo.event.BuildHungEvent
-
- All Implemented Interfaces:
PlanEvent
,PlanResultEvent
,Serializable
@AsynchronousPreferred public class BuildHungEvent extends BuildEvent implements PlanResultEvent
An event that is thrown if the build has been detected to have hung based on certain criteria. It is highly likely that the build will not have completed yet, hence no build completed data will be retrievable.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description BuildHungEvent(Object source, String buildKey, int buildNumber, @NotNull CurrentlyBuilding currentlyBuilding, List<LogEntry> buildLogs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable List<LogEntry>
getBuildLogs()
int
getBuildNumber()
@NotNull CurrentlyBuilding
getCurrentlyBuilding()
PlanResultKey
getPlanResultKey()
Get thePlanResultKey
for theResultsSummary
-
Methods inherited from class com.atlassian.bamboo.event.BuildEvent
getBuildPlanKey, getPlanKey, toString
-
Methods inherited from class java.util.EventObject
getSource
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.event.PlanEvent
getPlanKey
-
-
-
-
Constructor Detail
-
BuildHungEvent
public BuildHungEvent(Object source, String buildKey, int buildNumber, @NotNull @NotNull CurrentlyBuilding currentlyBuilding, List<LogEntry> buildLogs)
-
-
Method Detail
-
getCurrentlyBuilding
@NotNull public @NotNull CurrentlyBuilding getCurrentlyBuilding()
-
getBuildNumber
public int getBuildNumber()
-
getPlanResultKey
public PlanResultKey getPlanResultKey()
Description copied from interface:PlanResultEvent
Get thePlanResultKey
for theResultsSummary
- Specified by:
getPlanResultKey
in interfacePlanResultEvent
- Returns:
- planResultKey
-
-