Class DeploymentResultImpl
java.lang.Object
com.atlassian.bamboo.deployments.results.DeploymentResultImpl
- All Implemented Interfaces:
BambooIdProvider
,DeploymentResult
,InternalDeploymentResult
-
Constructor Summary
ConstructorDescriptionDeploymentResultImpl
(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
Modifier and TypeMethodDescriptionboolean
@Nullable BuildAgent
getAgent()
@Nullable AgentType
@NotNull BuildState
@Nullable DeploymentVersion
@NotNull String
@NotNull Environment
long
@Nullable Date
@Nullable Date
long
getId()
@NotNull DeploymentResultKey
getKey()
@NotNull LifeCycleState
Operations
object describing detailed permissions for result@Nullable Date
@NotNull String
@Nullable Date
@NotNull TriggerReason
int
hashCode()
-
Constructor Details
-
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 Details
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceInternalDeploymentResult
-
getKey
- Specified by:
getKey
in interfaceDeploymentResult
-
getDeploymentState
- Specified by:
getDeploymentState
in interfaceInternalDeploymentResult
-
getLifeCycleState
- Specified by:
getLifeCycleState
in interfaceInternalDeploymentResult
-
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
- Specified by:
getQueuedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUED
state.
-
getExecutedDate
- Specified by:
getExecutedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result sent to agent for execution. Set with
LifeCycleState.IN_PROGRESS
state.
-
getFinishedDate
- Specified by:
getFinishedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATES
states.
-
getAgentId
- Specified by:
getAgentId
in interfaceInternalDeploymentResult
-
getAgentType
- Specified by:
getAgentType
in interfaceInternalDeploymentResult
-
getEnvironment
- Specified by:
getEnvironment
in interfaceDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()- Specified by:
getEnvironmentId
in interfaceInternalDeploymentResult
-
getDeploymentVersion
- Specified by:
getDeploymentVersion
in interfaceDeploymentResult
-
getDeploymentVersionName
- Specified by:
getDeploymentVersionName
in interfaceInternalDeploymentResult
-
getTriggerReason
- Specified by:
getTriggerReason
in interfaceInternalDeploymentResult
-
getReasonSummary
- Specified by:
getReasonSummary
in interfaceDeploymentResult
-
getCustomData
- Specified by:
getCustomData
in interfaceDeploymentResult
-
getAgent
- Specified by:
getAgent
in interfaceDeploymentResult
-
getOperations
Description copied from interface:DeploymentResult
Operations
object describing detailed permissions for result- Specified by:
getOperations
in interfaceDeploymentResult
- Returns:
-
equals
-
hashCode
public int hashCode()
-