@Service public class DeploymentStatusHelperImpl extends Object implements DeploymentStatusHelper
Constructor and Description |
---|
DeploymentStatusHelperImpl(DeploymentRepository deploymentRepository) |
Modifier and Type | Method and Description |
---|---|
void |
updateOnError(String deploymentUuid,
String message)
Update the status of the deployment with an error message.
|
void |
updateOnError(String deploymentUuid,
String message,
Throwable throwable) |
void |
updateOnError(String deploymentUuid,
Throwable throwable) |
void |
updateOnSuccess(String deploymentUuid)
Update the status of a deployment successfully.
|
void |
updateResources(Deployment deployment,
Status status) |
public DeploymentStatusHelperImpl(DeploymentRepository deploymentRepository)
public void updateOnError(String deploymentUuid, String message, Throwable throwable)
updateOnError
in interface DeploymentStatusHelper
public void updateOnError(String deploymentUuid, Throwable throwable)
updateOnError
in interface DeploymentStatusHelper
public void updateOnError(String deploymentUuid, String message)
DeploymentStatusHelper
updateOnError
in interface DeploymentStatusHelper
deploymentUuid
- the deployment idmessage
- the error messagepublic void updateOnSuccess(String deploymentUuid)
DeploymentStatusHelper
updateOnSuccess
in interface DeploymentStatusHelper
deploymentUuid
- the deployment UUIDpublic void updateResources(Deployment deployment, Status status)
updateResources
in interface DeploymentStatusHelper
Copyright © 2015–2023 I.N.F.N.. All rights reserved.