Class DeploymentResultImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.results.DeploymentResultImpl
-
- All Implemented Interfaces:
BambooIdProvider,DeploymentResult,InternalDeploymentResult
public class DeploymentResultImpl extends Object implements DeploymentResult
-
-
Constructor Summary
Constructors Constructor Description DeploymentResultImpl(long id, BuildState deploymentState, LifeCycleState lifeCycleState, Date startedDate, Date queuedDate, Date executedDate, Date finishedDate, String deploymentVersionName, Long agentId, Map<String,String> customData, TriggerReason triggerReason, @NotNull Environment environment, @Nullable DeploymentVersion deploymentVersion, @Nullable Operations operations, @Nullable AgentType agentType)DeploymentResultImpl(@NotNull DeploymentResultDto deploymentResult, @NotNull Environment environment, @Nullable DeploymentVersion deploymentVersion, @Nullable Operations operations)DeploymentResultImpl(@NotNull MutableDeploymentResult deploymentResult, @NotNull Environment environment, @Nullable DeploymentVersion deploymentVersion, @Nullable Operations operations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Nullable BuildAgentgetAgent()LonggetAgentId()@Nullable AgentTypegetAgentType()@NotNull com.google.common.collect.ImmutableMap<String,String>getCustomData()@NotNull BuildStategetDeploymentState()@Nullable DeploymentVersiongetDeploymentVersion()@NotNull StringgetDeploymentVersionName()@NotNull EnvironmentgetEnvironment()longgetEnvironmentId()@Nullable DategetExecutedDate()@Nullable DategetFinishedDate()longgetId()@NotNull DeploymentResultKeygetKey()@NotNull LifeCycleStategetLifeCycleState()OperationsgetOperations()Operationsobject describing detailed permissions for result@Nullable DategetQueuedDate()@NotNull StringgetReasonSummary()@Nullable DategetStartedDate()@NotNull TriggerReasongetTriggerReason()inthashCode()
-
-
-
Constructor Detail
-
DeploymentResultImpl
public DeploymentResultImpl(@NotNull @NotNull MutableDeploymentResult deploymentResult, @NotNull @NotNull Environment environment, @Nullable @Nullable DeploymentVersion deploymentVersion, @Nullable @Nullable Operations operations)
-
DeploymentResultImpl
public DeploymentResultImpl(@NotNull @NotNull DeploymentResultDto deploymentResult, @NotNull @NotNull Environment environment, @Nullable @Nullable DeploymentVersion deploymentVersion, @Nullable @Nullable Operations operations)
-
DeploymentResultImpl
public DeploymentResultImpl(long id, BuildState deploymentState, LifeCycleState lifeCycleState, Date startedDate, Date queuedDate, Date executedDate, Date finishedDate, String deploymentVersionName, Long agentId, Map<String,String> customData, TriggerReason triggerReason, @NotNull @NotNull Environment environment, @Nullable @Nullable DeploymentVersion deploymentVersion, @Nullable @Nullable Operations operations, @Nullable @Nullable AgentType agentType)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentResult
-
getKey
@NotNull public @NotNull DeploymentResultKey getKey()
- Specified by:
getKeyin interfaceDeploymentResult
-
getDeploymentState
@NotNull public @NotNull BuildState getDeploymentState()
- Specified by:
getDeploymentStatein interfaceInternalDeploymentResult
-
getLifeCycleState
@NotNull public @NotNull LifeCycleState getLifeCycleState()
- Specified by:
getLifeCycleStatein interfaceInternalDeploymentResult
-
getStartedDate
@Nullable public @Nullable Date getStartedDate()
- Specified by:
getStartedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result execution initiated, e.g. triggered or manually executed by user. Set with
LifeCycleState.PENDINGstate.
-
getQueuedDate
@Nullable public @Nullable Date getQueuedDate()
- Specified by:
getQueuedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUEDstate.
-
getExecutedDate
@Nullable public @Nullable Date getExecutedDate()
- Specified by:
getExecutedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result sent to agent for execution. Set with
LifeCycleState.IN_PROGRESSstate.
-
getFinishedDate
@Nullable public @Nullable Date getFinishedDate()
- Specified by:
getFinishedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATESstates.
-
getAgentId
public Long getAgentId()
- Specified by:
getAgentIdin interfaceInternalDeploymentResult
-
getAgentType
@Nullable public @Nullable AgentType getAgentType()
- Specified by:
getAgentTypein interfaceInternalDeploymentResult
-
getEnvironment
@NotNull public @NotNull Environment getEnvironment()
- Specified by:
getEnvironmentin interfaceDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()
- Specified by:
getEnvironmentIdin interfaceInternalDeploymentResult
-
getDeploymentVersion
@Nullable public @Nullable DeploymentVersion getDeploymentVersion()
- Specified by:
getDeploymentVersionin interfaceDeploymentResult
-
getDeploymentVersionName
@NotNull public @NotNull String getDeploymentVersionName()
- Specified by:
getDeploymentVersionNamein interfaceInternalDeploymentResult
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason()
- Specified by:
getTriggerReasonin interfaceInternalDeploymentResult
-
getReasonSummary
@NotNull public @NotNull String getReasonSummary()
- Specified by:
getReasonSummaryin interfaceDeploymentResult
-
getCustomData
@NotNull public @NotNull com.google.common.collect.ImmutableMap<String,String> getCustomData()
- Specified by:
getCustomDatain interfaceDeploymentResult
-
getAgent
@Nullable public @Nullable BuildAgent getAgent()
- Specified by:
getAgentin interfaceDeploymentResult
-
getOperations
public Operations getOperations()
Description copied from interface:DeploymentResultOperationsobject describing detailed permissions for result- Specified by:
getOperationsin interfaceDeploymentResult- Returns:
-
-