com.atlassian.bamboo.event
Class BuildCanceledEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by com.atlassian.event.Event
              extended by com.atlassian.bamboo.event.BuildEvent
                  extended by com.atlassian.bamboo.event.BuildResultEvent
                      extended by com.atlassian.bamboo.event.BuildCanceledEvent
All Implemented Interfaces:
PlanEvent, PlanResultEvent, java.io.Serializable

public class BuildCanceledEvent
extends BuildResultEvent

Fired when Build is canceled through the StopBuildManager

Since:
2.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.event.BuildResultEvent
planResultKey
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BuildCanceledEvent(java.lang.Object source, CurrentlyBuilding currentlyBuilding)
           
 
Method Summary
 java.lang.Long getAgentId()
          Agent that the Build was running on.
 java.util.Date getCancellationDate()
           
 boolean isResultAbandoned()
          Was the result Abandoned.
 
Methods inherited from class com.atlassian.bamboo.event.BuildResultEvent
getBuildNumber, getBuildResultKey, getPlanResultKey
 
Methods inherited from class com.atlassian.bamboo.event.BuildEvent
getBuildPlanKey, getPlanKey, toString
 
Methods inherited from class com.atlassian.event.Event
equals, hashCode
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
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

BuildCanceledEvent

public BuildCanceledEvent(java.lang.Object source,
                          CurrentlyBuilding currentlyBuilding)
Method Detail

getAgentId

@Nullable
public java.lang.Long getAgentId()
Agent that the Build was running on. Returns null if not queued.

Returns:
agentId

isResultAbandoned

public boolean isResultAbandoned()
Was the result Abandoned. Typically results that are 'abandoned' are canceled builds while non-abandoned builds were stopped.

Returns:
abandoned

getCancellationDate

public java.util.Date getCancellationDate()


Copyright © 2012 Atlassian. All Rights Reserved.