|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentResultService
Method Summary | |
---|---|
int |
countDeploymentResultsForEnvironment(long environmentId)
Count deployment results for deployment. |
DeploymentResult |
createDeploymentResult(long environmentId,
long deploymentVersionId,
VariableContext variableContext,
TriggerReason triggerReason)
|
Set<Long> |
findEnvironmentIdsVersionWasDeployedOn(long deploymentVersionId)
|
DeploymentResult |
getDeploymentResult(long deploymentResultId)
Retrieve a specific deployment result. |
List<DeploymentResult> |
getDeploymentResultsByLifeCycleState(Collection<LifeCycleState> lifeCycleStates)
|
List<DeploymentResult> |
getDeploymentResultsForDeploymentVersion(long deploymentVersionId)
Get all deployment results for deployment version. |
List<DeploymentResult> |
getDeploymentResultsForDeploymentVersionAndEnvironment(long deploymentVersionId,
long environmentId)
Get all deployment results for deployment versions that ran against the specified environment. |
List<DeploymentResult> |
getDeploymentResultsForDeploymentVersionFinishedBefore(long deploymentVersionId,
Date finishDate)
Get all deployment results for deployment version finished before given date. |
List<DeploymentResult> |
getDeploymentResultsForEnvironment(long environmentId)
Get all deployment results for environment. |
List<DeploymentResult> |
getDeploymentResultsForEnvironment(long environmentId,
int offset,
int maxResults)
Get deployment results for environment. |
DeploymentResult |
getLastResultBefore(DeploymentResult deploymentResult)
|
DeploymentResult |
getLastResultInStatesBefore(DeploymentResult deploymentResult,
EnumSet<BuildState> buildStates)
|
DeploymentResult |
getLatestDeploymentResult(long environmentId,
long deploymentVersionId)
Retrieve a specific deployment result for an environment and version. |
DeploymentResult |
getLatestDeploymentResultForEnvironment(long environmentId)
Get the latest result that ran against an environment |
List<EnvironmentStatus> |
getLatestKnownDeploymentResultForEnvironments(Iterable<? extends Environment> environments)
Get the latest results that *actually* ran against a list of environments. |
List<DeploymentResult> |
getResultsWhereDeploymentVersionIsDeployedNow(List<Long> environmentsId,
long deploymentVersionId)
|
DeploymentVersion |
getRollbackVersion(DeploymentResult deploymentResult)
For a given deployment result find the version that existed on the environment before that deployment. |
DeploymentVersion |
getRollbackVersion(long environmentId)
For a given environment find the version that existed on the environment prior to the last deployment. |
List<DeploymentResult> |
getSuccessfulDeploymentResultsForEnvironment(long environmentId,
int offset,
int maxResults)
Get successful deployment results for environment. |
void |
logSubstitutedVariables(long deploymentResultId,
Map<String,VariableSubstitutionContext> substitutions)
Adds variable substitution result to DeploymentResult This method logs substitution after it was
performed and will use only REALLY substituted values |
void |
setExecutingAgent(long deploymentResultId,
long agentId)
Set the agent that the deployment is executing on. |
void |
updateDeploymentState(long deploymentResultId,
BuildState buildState,
Map<String,String> customData)
Update the build state of the Deployment Result |
void |
updateLifeCycleState(DeploymentTimingPoint timingPoint,
LifeCycleState lifeCycleState)
Update lifecycle state of the DeploymentResult |
void |
updateLifeCycleState(long deploymentResultId,
LifeCycleState lifeCycleState)
Update lifecycle state of the DeploymentResult. |
Method Detail |
---|
DeploymentResult createDeploymentResult(long environmentId, long deploymentVersionId, @NotNull VariableContext variableContext, @NotNull TriggerReason triggerReason)
@Nullable DeploymentResult getDeploymentResult(long deploymentResultId)
deploymentResultId
- of the result
@Nullable DeploymentResult getLatestDeploymentResult(long environmentId, long deploymentVersionId)
environmentId
- of the environmentdeploymentVersionId
- of the version
@NotNull List<DeploymentResult> getDeploymentResultsForEnvironment(long environmentId)
environmentId
- id of environment to get results from
@NotNull List<DeploymentResult> getDeploymentResultsForEnvironment(long environmentId, int offset, int maxResults)
environmentId
- id of environment to get results fromoffset
- maxResults
-
@NotNull List<DeploymentResult> getSuccessfulDeploymentResultsForEnvironment(long environmentId, int offset, int maxResults)
environmentId
- id of environment to get results fromoffset
- maxResults
-
@NotNull List<DeploymentResult> getDeploymentResultsForDeploymentVersion(long deploymentVersionId)
deploymentVersionId
- id of deployment version to get results from
@NotNull List<DeploymentResult> getDeploymentResultsForDeploymentVersionAndEnvironment(long deploymentVersionId, long environmentId)
deploymentVersionId
- id of deployment versionenvironmentId
- id of environment
@NotNull List<DeploymentResult> getDeploymentResultsForDeploymentVersionFinishedBefore(long deploymentVersionId, Date finishDate)
deploymentVersionId
- id of deployment version to get results fromfinishDate
- only select results finished before this date
int countDeploymentResultsForEnvironment(long environmentId)
environmentId
-
@Nullable DeploymentResult getLatestDeploymentResultForEnvironment(long environmentId)
environmentId
- id of the environment
@NotNull List<EnvironmentStatus> getLatestKnownDeploymentResultForEnvironments(Iterable<? extends Environment> environments)
environments
- we want to retrieve latest DeploymentResult
@NotNull List<DeploymentResult> getDeploymentResultsByLifeCycleState(Collection<LifeCycleState> lifeCycleStates)
void updateLifeCycleState(long deploymentResultId, @NotNull LifeCycleState lifeCycleState)
deploymentResultId
- id of DeploymentResultlifeCycleState
- lifecycle state to be setvoid updateLifeCycleState(@NotNull DeploymentTimingPoint timingPoint, @NotNull LifeCycleState lifeCycleState)
timingPoint
- deployment timing pointlifeCycleState
- lifecycle state to be setvoid setExecutingAgent(long deploymentResultId, long agentId)
deploymentResultId
- id of the deployment resultagentId
- if of the agentvoid updateDeploymentState(long deploymentResultId, @NotNull BuildState buildState, Map<String,String> customData)
deploymentResultId
- if of result to updatebuildState
- new value of the build state to savecustomData
- void logSubstitutedVariables(long deploymentResultId, Map<String,VariableSubstitutionContext> substitutions)
DeploymentResult
This method logs substitution after it was
performed and will use only REALLY substituted values
@Nullable DeploymentVersion getRollbackVersion(long environmentId)
environmentId
- to find rollback version for.
@Nullable DeploymentVersion getRollbackVersion(@NotNull DeploymentResult deploymentResult)
deploymentResult
- deployment result that was deployed at some time on some environment
@NotNull Set<Long> findEnvironmentIdsVersionWasDeployedOn(long deploymentVersionId)
deploymentVersionId
-
@NotNull List<DeploymentResult> getResultsWhereDeploymentVersionIsDeployedNow(List<Long> environmentsId, long deploymentVersionId)
environmentsId
- list of environments to checkdeploymentVersionId
-
@Nullable DeploymentResult getLastResultBefore(@NotNull DeploymentResult deploymentResult)
@Nullable DeploymentResult getLastResultInStatesBefore(@NotNull DeploymentResult deploymentResult, @NotNull EnumSet<BuildState> buildStates)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |