Class AbstractBuildAwareAgentStatus
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.AbstractAgentStatus
-
- com.atlassian.bamboo.v2.build.agent.AbstractBuildAwareAgentStatus
-
- All Implemented Interfaces:
AgentStatus
- Direct Known Subclasses:
AgentBuildingStatus
,AgentCancellingStatus
public abstract class AbstractBuildAwareAgentStatus extends AbstractAgentStatus
-
-
Field Summary
Fields Modifier and Type Field Description protected long
deploymentResultId
protected String
displayName
protected ResultKey
resultKey
-
Constructor Summary
Constructors Constructor Description AbstractBuildAwareAgentStatus(ResultKey resultKey, String displayName, long deploymentResultId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Nullable String
getDisplayName()
ResultKey
getResultKey()
@Nullable String
getUrl()
int
hashCode()
boolean
isAllowDelete()
-
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
getIcon, getImagePath, getLabel, getOrderIndex
-
-
-
-
Method Detail
-
getUrl
@Nullable public @Nullable String getUrl()
- Returns:
- The URL the status should point to. Will be prepended by the contextPath
-
isAllowDelete
public boolean isAllowDelete()
- Returns:
- true if the agent is allowed to be deleted when in this state
-
getDisplayName
@Nullable public @Nullable String getDisplayName()
- Specified by:
getDisplayName
in interfaceAgentStatus
- Overrides:
getDisplayName
in classAbstractAgentStatus
- Returns:
- The display name for the thing that agent is building. Use in the UI.
-
getResultKey
public ResultKey getResultKey()
-
-