Class MutableDeploymentResultImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.deployments.results.persistence.MutableDeploymentResultImpl
- All Implemented Interfaces:
BambooCustomDataAware
,BambooIdProvider
,BambooObject
,InternalDeploymentResult
,MutableDeploymentResult
,Cloneable
@Entity
public class MutableDeploymentResultImpl
extends BambooEntityObject
implements MutableDeploymentResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable AgentType
@NotNull BuildState
@NotNull String
long
@Nullable Date
@Nullable Date
@NotNull LifeCycleState
@Nullable Date
@Nullable Date
@NotNull TriggerReason
@Nullable VariableContextBaseline
long
void
setAgentId
(Long agentId) void
setAgentType
(@Nullable AgentType agentType) void
setDeploymentState
(@Nullable BuildState deploymentState) void
setDeploymentVersion
(@Nullable MutableDeploymentVersion deploymentVersion) void
setDeploymentVersionName
(@NotNull String deploymentVersionName) void
setEnvironment
(MutableEnvironment environment) void
setExecutedDate
(@Nullable Date executedDate) void
setFinishedDate
(@Nullable Date finishedDate) void
setLifeCycleState
(@Nullable LifeCycleState lifeCycleState) void
setQueuedDate
(@Nullable Date queuedDate) void
setStartedDate
(@Nullable Date startedDate) void
setTriggerReasonKey
(String triggerReasonKey) void
setVariableContextBaseline
(@Nullable VariableContextBaseline variableContextBaseline) toString()
void
updateCustomDataEntry
(@NotNull String key, @NotNull String value) Add or modify key value pair to Object's custom data map.Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
Methods inherited from interface com.atlassian.bamboo.deployments.results.InternalDeploymentResult
getId
-
Constructor Details
-
MutableDeploymentResultImpl
public MutableDeploymentResultImpl()
-
-
Method Details
-
setDeploymentVersion
-
setEnvironment
-
getDeploymentVersionName
- Specified by:
getDeploymentVersionName
in interfaceInternalDeploymentResult
-
setDeploymentVersionName
- Specified by:
setDeploymentVersionName
in interfaceMutableDeploymentResult
-
getDeploymentState
- Specified by:
getDeploymentState
in interfaceInternalDeploymentResult
-
setDeploymentState
- Specified by:
setDeploymentState
in interfaceMutableDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()- Specified by:
getEnvironmentId
in interfaceInternalDeploymentResult
-
getVersionId
public long getVersionId()- Specified by:
getVersionId
in interfaceMutableDeploymentResult
-
getLifeCycleState
- Specified by:
getLifeCycleState
in interfaceInternalDeploymentResult
-
setLifeCycleState
- Specified by:
setLifeCycleState
in interfaceMutableDeploymentResult
-
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.
-
setStartedDate
- Specified by:
setStartedDate
in interfaceMutableDeploymentResult
-
getQueuedDate
- Specified by:
getQueuedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUED
state.
-
setQueuedDate
- Specified by:
setQueuedDate
in interfaceMutableDeploymentResult
-
getExecutedDate
- Specified by:
getExecutedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result sent to agent for execution. Set with
LifeCycleState.IN_PROGRESS
state.
-
setExecutedDate
- Specified by:
setExecutedDate
in interfaceMutableDeploymentResult
-
getFinishedDate
- Specified by:
getFinishedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATES
states.
-
setFinishedDate
- Specified by:
setFinishedDate
in interfaceMutableDeploymentResult
-
getAgentId
- Specified by:
getAgentId
in interfaceInternalDeploymentResult
-
setAgentId
- Specified by:
setAgentId
in interfaceMutableDeploymentResult
-
getAgentType
- Specified by:
getAgentType
in interfaceInternalDeploymentResult
-
setAgentType
- Specified by:
setAgentType
in interfaceMutableDeploymentResult
-
getVariableContextBaseline
-
setVariableContextBaseline
public void setVariableContextBaseline(@Nullable @Nullable VariableContextBaseline variableContextBaseline) -
getTriggerReasonKey
- Specified by:
getTriggerReasonKey
in interfaceMutableDeploymentResult
-
setTriggerReasonKey
- Specified by:
setTriggerReasonKey
in interfaceMutableDeploymentResult
-
getTriggerReason
- Specified by:
getTriggerReason
in interfaceInternalDeploymentResult
-
updateCustomDataEntry
Description copied from interface:BambooCustomDataAware
Add or modify key value pair to Object's custom data map.- Specified by:
updateCustomDataEntry
in interfaceBambooCustomDataAware
- Parameters:
key
- key to addvalue
- value to add
-
getCustomData
- Specified by:
getCustomData
in interfaceMutableDeploymentResult
-
toString
-