use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.
the class UpgradeCcmService method deregisterMinaState.
public void deregisterMinaState(Long stackId) {
DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
String statusReason = "Deregistering Mina agent";
stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.
the class UpgradeCcmService method failedState.
public void failedState(UpgradeCcmContext context, UpgradeCcmFailureEvent payload) {
InMemoryStateStore.deleteStack(payload.getResourceId());
DetailedStackStatus detailedStatus = payload.getTransitionStatusAfterFailure().orElse(UPGRADE_CCM_FAILED);
String statusReason = "Upgrade CCM failed";
stackUpdater.updateStackStatus(payload.getResourceId(), detailedStatus, statusReason);
}
use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.
the class UpgradeCcmService method healthCheckState.
public void healthCheckState(Long stackId) {
DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
String statusReason = "Running health check";
stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.
the class UpgradeCcmService method finishedState.
public void finishedState(Long stackId) {
InMemoryStateStore.deleteStack(stackId);
DetailedStackStatus detailedStatus = AVAILABLE;
String statusReason = "Upgrade CCM completed";
stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.
the class UpgradeCcmService method upgradeState.
public void upgradeState(Long stackId) {
DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
String statusReason = "Applying upgrade on nodes";
stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Aggregations