Class DeploymentResultImpl
java.lang.Object
com.atlassian.bamboo.deployments.results.DeploymentResultImpl
- All Implemented Interfaces:
BambooIdProvider,DeploymentResult,InternalDeploymentResult
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentResultImpl(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 BuildAgentgetAgent()@Nullable AgentType@NotNull BuildState@Nullable DeploymentVersion@NotNull String@NotNull Environmentlong@Nullable Date@Nullable DatelonggetId()@NotNull DeploymentResultKeygetKey()@NotNull LifeCycleStateOperationsobject describing detailed permissions for result@Nullable Date@NotNull String@Nullable Date@NotNull TriggerReasoninthashCode()
-
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:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceInternalDeploymentResult
-
getKey
- Specified by:
getKeyin interfaceDeploymentResult
-
getDeploymentState
- Specified by:
getDeploymentStatein interfaceInternalDeploymentResult
-
getLifeCycleState
- Specified by:
getLifeCycleStatein interfaceInternalDeploymentResult
-
getStartedDate
- Specified by:
getStartedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result execution initiated, e.g. triggered or manually executed by user. Set with
LifeCycleState.PENDINGstate.
-
getQueuedDate
- Specified by:
getQueuedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUEDstate.
-
getExecutedDate
- Specified by:
getExecutedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result sent to agent for execution. Set with
LifeCycleState.IN_PROGRESSstate.
-
getFinishedDate
- Specified by:
getFinishedDatein interfaceInternalDeploymentResult- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATESstates.
-
getAgentId
- Specified by:
getAgentIdin interfaceInternalDeploymentResult
-
getAgentType
- Specified by:
getAgentTypein interfaceInternalDeploymentResult
-
getEnvironment
- Specified by:
getEnvironmentin interfaceDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()- Specified by:
getEnvironmentIdin interfaceInternalDeploymentResult
-
getDeploymentVersion
- Specified by:
getDeploymentVersionin interfaceDeploymentResult
-
getDeploymentVersionName
- Specified by:
getDeploymentVersionNamein interfaceInternalDeploymentResult
-
getTriggerReason
- Specified by:
getTriggerReasonin interfaceInternalDeploymentResult
-
getReasonSummary
- Specified by:
getReasonSummaryin interfaceDeploymentResult
-
getCustomData
- Specified by:
getCustomDatain interfaceDeploymentResult
-
getAgent
- Specified by:
getAgentin interfaceDeploymentResult
-
getOperations
Description copied from interface:DeploymentResultOperationsobject describing detailed permissions for result- Specified by:
getOperationsin interfaceDeploymentResult- Returns:
-
equals
-
hashCode
public int hashCode()
-