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 Details

    • resultKey

      protected final ResultKey resultKey
    • displayName

      protected final String displayName
    • deploymentResultId

      protected final long deploymentResultId
  • Constructor Details

    • AbstractBuildAwareAgentStatus

      public AbstractBuildAwareAgentStatus(ResultKey resultKey, String displayName, long deploymentResultId)
  • Method Details

    • 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 interface AgentStatus
      Overrides:
      getDisplayName in class AbstractAgentStatus
      Returns:
      The display name for the thing that agent is building. Use in the UI.
    • getResultKey

      public ResultKey getResultKey()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object