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, 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(Object source, CurrentlyBuilding currentlyBuilding)
           
 
Method Summary
 Long getAgentId()
          Agent that the Build was running on.
 Date getCancellationDate()
           
 boolean isResultAbandoned()
          Deprecated. since 5.6 without replacement. Not used since 2.7
 
Methods inherited from class com.atlassian.bamboo.event.BuildResultEvent
getBuildNumber, getBuildResultKey, getPlanResultKey, toString
 
Methods inherited from class com.atlassian.bamboo.event.BuildEvent
getBuildPlanKey, getPlanKey
 
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(Object source,
                          CurrentlyBuilding currentlyBuilding)
Method Detail

getAgentId

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

Returns:
agentId

isResultAbandoned

@Deprecated
public boolean isResultAbandoned()
Deprecated. since 5.6 without replacement. Not used since 2.7

Was the result Abandoned. Typically results that are 'abandoned' are canceled builds while non-abandoned builds were stopped.

Returns:
always false

getCancellationDate

public Date getCancellationDate()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.