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:
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
buildNumber
 
Fields inherited from class com.atlassian.bamboo.event.BuildEvent
buildKey
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BuildCanceledEvent(java.lang.Object source, java.lang.String buildKey, int buildNumber, java.lang.Long agentId, boolean resultAbandoned)
           
 
Method Summary
 java.lang.Long getAgentId()
          Agent that the Build was running on.
 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
 
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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildCanceledEvent

public BuildCanceledEvent(java.lang.Object source,
                          java.lang.String buildKey,
                          int buildNumber,
                          java.lang.Long agentId,
                          boolean resultAbandoned)
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


Copyright © 2010 Atlassian. All Rights Reserved.