Search in sources :

Example 1 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method reconfigureNginxState.

public void reconfigureNginxState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Reconfiguring NGINX on nodes";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 2 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method pushSaltStatesState.

public void pushSaltStatesState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Pushing Salt states";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 3 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method removeMinaState.

public void removeMinaState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Removing Mina agent from nodes";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 4 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method obtainAgentDataState.

public void obtainAgentDataState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Provisioning connectivity agent";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 5 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method changeTunnelState.

public void changeTunnelState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Changing tunnel type in database";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Aggregations

DetailedStackStatus (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)17 InstanceMetaData (com.sequenceiq.freeipa.entity.InstanceMetaData)3 CloudVmInstanceStatus (com.sequenceiq.cloudbreak.cloud.model.CloudVmInstanceStatus)2 InstanceStatus (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceStatus)2 StackStatus (com.sequenceiq.freeipa.entity.StackStatus)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 RPCResponse (com.sequenceiq.cloudbreak.client.RPCResponse)1 BadRequestException (com.sequenceiq.cloudbreak.common.exception.BadRequestException)1 Benchmark.checkedMeasure (com.sequenceiq.cloudbreak.util.Benchmark.checkedMeasure)1 DistroXV1Request (com.sequenceiq.distrox.api.v1.distrox.model.DistroXV1Request)1 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)1 FlowLogService (com.sequenceiq.flow.core.FlowLogService)1 Status (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.Status)1 DescribeFreeIpaResponse (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.describe.DescribeFreeIpaResponse)1 Stack (com.sequenceiq.freeipa.entity.Stack)1 InstanceMetaDataService (com.sequenceiq.freeipa.service.stack.instance.InstanceMetaDataService)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1