com.atlassian.bamboo.v2.build.agent
Class AbstractBuildAwareAgentStatus

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.AbstractAgentStatus
      extended by com.atlassian.bamboo.v2.build.agent.AbstractBuildAwareAgentStatus
All Implemented Interfaces:
AgentStatus
Direct Known Subclasses:
AgentBuildingStatus, AgentCancellingStatus

public abstract class AbstractBuildAwareAgentStatus
extends AbstractAgentStatus


Field Summary
protected  long deploymentResultId
           
protected  java.lang.String displayName
           
protected  ResultKey resultKey
           
 
Constructor Summary
AbstractBuildAwareAgentStatus(ResultKey resultKey, java.lang.String displayName, long deploymentResultId)
           
AbstractBuildAwareAgentStatus(java.lang.String planKey, java.lang.String buildResultKey)
          Deprecated. since 5.0 - please use AbstractBuildAwareAgentStatus(ResultKey resultKey, String displayName, long deploymentResultId)
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getBuildResultKey()
          Deprecated. since 5.0 use getResultKey
 java.lang.String getDisplayName()
          The display name for the thing that agent is building.
 java.lang.String getPlanKey()
          Deprecated. since 5.0 use getResultKey
 ResultKey getResultKey()
           
 java.lang.String getUrl()
          The URL the status should point to.
 int hashCode()
           
 boolean isAllowDelete()
          Returns true if the agent is allowed to be deleted when in this state
 
Methods inherited from class com.atlassian.bamboo.v2.build.agent.AbstractAgentStatus
isIdle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.AgentStatus
getImagePath, getLabel, getOrderIndex
 

Field Detail

resultKey

protected final ResultKey resultKey

displayName

protected final java.lang.String displayName

deploymentResultId

protected final long deploymentResultId
Constructor Detail

AbstractBuildAwareAgentStatus

@Deprecated
public AbstractBuildAwareAgentStatus(java.lang.String planKey,
                                                java.lang.String buildResultKey)
Deprecated. since 5.0 - please use AbstractBuildAwareAgentStatus(ResultKey resultKey, String displayName, long deploymentResultId)


AbstractBuildAwareAgentStatus

public AbstractBuildAwareAgentStatus(ResultKey resultKey,
                                     java.lang.String displayName,
                                     long deploymentResultId)
Method Detail

getUrl

@Nullable
public java.lang.String getUrl()
Description copied from interface: AgentStatus
The URL the status should point to. Will be prepended by the contextPath

Returns:

isAllowDelete

public boolean isAllowDelete()
Description copied from interface: AgentStatus
Returns true if the agent is allowed to be deleted when in this state

Returns:

getDisplayName

@Nullable
public java.lang.String getDisplayName()
Description copied from interface: AgentStatus
The display name for the thing that agent is building. Use in the UI.

Specified by:
getDisplayName in interface AgentStatus
Overrides:
getDisplayName in class AbstractAgentStatus
Returns:

getResultKey

public ResultKey getResultKey()

getBuildResultKey

@Deprecated
public java.lang.String getBuildResultKey()
Deprecated. since 5.0 use getResultKey


getPlanKey

@Deprecated
public java.lang.String getPlanKey()
Deprecated. since 5.0 use getResultKey


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.