Class RestDeploymentResult
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.deployments.results.RestDeploymentResult
-
- All Implemented Interfaces:
BambooIdProvider
,DeploymentResult
,InternalDeploymentResult
- Direct Known Subclasses:
RestDeploymentResultWithLogs
public class RestDeploymentResult extends Object implements DeploymentResult
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RestDeploymentResult()
RestDeploymentResult(@NotNull DeploymentResult deploymentResult, @NotNull javax.ws.rs.core.UriBuilder baseUriBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildAgent
getAgent()
Long
getAgentId()
@Nullable AgentType
getAgentType()
@NotNull com.google.common.collect.ImmutableMap<String,String>
getCustomData()
@NotNull BuildState
getDeploymentState()
@Nullable DeploymentVersion
getDeploymentVersion()
@NotNull String
getDeploymentVersionName()
@NotNull Environment
getEnvironment()
long
getEnvironmentId()
@Nullable Date
getExecutedDate()
@Nullable Date
getFinishedDate()
long
getId()
@NotNull DeploymentResultKey
getKey()
@NotNull LifeCycleState
getLifeCycleState()
RestOperations
getOperations()
Operations
object describing detailed permissions for result@Nullable Date
getQueuedDate()
@NotNull String
getReasonSummary()
@Nullable Date
getStartedDate()
@NotNull TriggerReason
getTriggerReason()
-
-
-
Constructor Detail
-
RestDeploymentResult
protected RestDeploymentResult()
-
RestDeploymentResult
public RestDeploymentResult(@NotNull @NotNull DeploymentResult deploymentResult, @NotNull @NotNull javax.ws.rs.core.UriBuilder baseUriBuilder)
-
-
Method Detail
-
getDeploymentVersion
@Nullable public @Nullable DeploymentVersion getDeploymentVersion()
- Specified by:
getDeploymentVersion
in interfaceDeploymentResult
-
getDeploymentVersionName
@NotNull public @NotNull String getDeploymentVersionName()
- Specified by:
getDeploymentVersionName
in interfaceInternalDeploymentResult
-
getReasonSummary
@NotNull public @NotNull String getReasonSummary()
- Specified by:
getReasonSummary
in interfaceDeploymentResult
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentResult
-
getDeploymentState
@NotNull public @NotNull BuildState getDeploymentState()
- Specified by:
getDeploymentState
in interfaceInternalDeploymentResult
-
getLifeCycleState
@NotNull public @NotNull LifeCycleState getLifeCycleState()
- Specified by:
getLifeCycleState
in interfaceInternalDeploymentResult
-
getStartedDate
@Nullable public @Nullable Date getStartedDate()
- Specified by:
getStartedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result execution initiated, e.g. triggered or manually executed by user. Set with
LifeCycleState.PENDING
state.
-
getQueuedDate
@Nullable public @Nullable Date getQueuedDate()
- Specified by:
getQueuedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUED
state.
-
getExecutedDate
@Nullable public @Nullable Date getExecutedDate()
- Specified by:
getExecutedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result sent to agent for execution. Set with
LifeCycleState.IN_PROGRESS
state.
-
getFinishedDate
@Nullable public @Nullable Date getFinishedDate()
- Specified by:
getFinishedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATES
states.
-
getKey
@NotNull public @NotNull DeploymentResultKey getKey()
- Specified by:
getKey
in interfaceDeploymentResult
-
getAgent
public BuildAgent getAgent()
- Specified by:
getAgent
in interfaceDeploymentResult
-
getAgentId
public Long getAgentId()
- Specified by:
getAgentId
in interfaceInternalDeploymentResult
-
getAgentType
@Nullable public @Nullable AgentType getAgentType()
- Specified by:
getAgentType
in interfaceInternalDeploymentResult
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason()
- Specified by:
getTriggerReason
in interfaceInternalDeploymentResult
-
getEnvironment
@NotNull public @NotNull Environment getEnvironment()
- Specified by:
getEnvironment
in interfaceDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()
- Specified by:
getEnvironmentId
in interfaceInternalDeploymentResult
-
getCustomData
@NotNull public @NotNull com.google.common.collect.ImmutableMap<String,String> getCustomData()
- Specified by:
getCustomData
in interfaceDeploymentResult
-
getOperations
public RestOperations getOperations()
Description copied from interface:DeploymentResult
Operations
object describing detailed permissions for result- Specified by:
getOperations
in interfaceDeploymentResult
- Returns:
-
-