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
Constructors Constructor Description MutableDeploymentResultImpl()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
setDeploymentVersion
public void setDeploymentVersion(@Nullable @Nullable MutableDeploymentVersion deploymentVersion)
-
setEnvironment
public void setEnvironment(MutableEnvironment environment)
-
getDeploymentVersionName
@NotNull public @NotNull String getDeploymentVersionName()
- Specified by:
getDeploymentVersionName
in interfaceInternalDeploymentResult
-
setDeploymentVersionName
public void setDeploymentVersionName(@NotNull @NotNull String deploymentVersionName)
- Specified by:
setDeploymentVersionName
in interfaceMutableDeploymentResult
-
getDeploymentState
@NotNull public @NotNull BuildState getDeploymentState()
- Specified by:
getDeploymentState
in interfaceInternalDeploymentResult
-
setDeploymentState
public void setDeploymentState(@Nullable @Nullable BuildState deploymentState)
- Specified by:
setDeploymentState
in interfaceMutableDeploymentResult
-
getEnvironmentId
public long getEnvironmentId()
- Specified by:
getEnvironmentId
in interfaceInternalDeploymentResult
-
getVersionId
public long getVersionId()
- Specified by:
getVersionId
in interfaceMutableDeploymentResult
-
getLifeCycleState
@NotNull public @NotNull LifeCycleState getLifeCycleState()
- Specified by:
getLifeCycleState
in interfaceInternalDeploymentResult
-
setLifeCycleState
public void setLifeCycleState(@Nullable @Nullable LifeCycleState lifeCycleState)
- Specified by:
setLifeCycleState
in interfaceMutableDeploymentResult
-
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.
-
setStartedDate
public void setStartedDate(@Nullable @Nullable Date startedDate)
- Specified by:
setStartedDate
in interfaceMutableDeploymentResult
-
getQueuedDate
@Nullable public @Nullable Date getQueuedDate()
- Specified by:
getQueuedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result added to queue. Set with
LifeCycleState.QUEUED
state.
-
setQueuedDate
public void setQueuedDate(@Nullable @Nullable Date queuedDate)
- Specified by:
setQueuedDate
in interfaceMutableDeploymentResult
-
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.
-
setExecutedDate
public void setExecutedDate(@Nullable @Nullable Date executedDate)
- Specified by:
setExecutedDate
in interfaceMutableDeploymentResult
-
getFinishedDate
@Nullable public @Nullable Date getFinishedDate()
- Specified by:
getFinishedDate
in interfaceInternalDeploymentResult
- Returns:
- when deployment result execution was finished. Set with
LifeCycleState.FINAL_STATES
states.
-
setFinishedDate
public void setFinishedDate(@Nullable @Nullable Date finishedDate)
- Specified by:
setFinishedDate
in interfaceMutableDeploymentResult
-
getAgentId
public Long getAgentId()
- Specified by:
getAgentId
in interfaceInternalDeploymentResult
-
setAgentId
public void setAgentId(Long agentId)
- Specified by:
setAgentId
in interfaceMutableDeploymentResult
-
getAgentType
@Nullable public @Nullable AgentType getAgentType()
- Specified by:
getAgentType
in interfaceInternalDeploymentResult
-
setAgentType
public void setAgentType(@Nullable @Nullable AgentType agentType)
- Specified by:
setAgentType
in interfaceMutableDeploymentResult
-
getVariableContextBaseline
@Nullable public @Nullable VariableContextBaseline getVariableContextBaseline()
-
setVariableContextBaseline
public void setVariableContextBaseline(@Nullable @Nullable VariableContextBaseline variableContextBaseline)
-
getTriggerReasonKey
public String getTriggerReasonKey()
- Specified by:
getTriggerReasonKey
in interfaceMutableDeploymentResult
-
setTriggerReasonKey
public void setTriggerReasonKey(String triggerReasonKey)
- Specified by:
setTriggerReasonKey
in interfaceMutableDeploymentResult
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason()
- Specified by:
getTriggerReason
in interfaceInternalDeploymentResult
-
updateCustomDataEntry
public void updateCustomDataEntry(@NotNull @NotNull String key, @NotNull @NotNull String value)
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
@NotNull public @NotNull Map<String,String> getCustomData()
- Specified by:
getCustomData
in interfaceMutableDeploymentResult
-
-