use of com.sequenceiq.cloudbreak.common.type.ScalingType in project cloudbreak by hortonworks.
the class ReactorFlowManager method triggerClusterDownscale.
public void triggerClusterDownscale(Long stackId, HostGroupAdjustmentJson hostGroupAdjustment) {
String selector = FlowChainTriggers.FULL_DOWNSCALE_TRIGGER_EVENT;
ScalingType scalingType = hostGroupAdjustment.getWithStackUpdate() ? ScalingType.DOWNSCALE_TOGETHER : ScalingType.DOWNSCALE_ONLY_CLUSTER;
Acceptable event = new ClusterAndStackDownscaleTriggerEvent(selector, stackId, hostGroupAdjustment.getHostGroup(), hostGroupAdjustment.getScalingAdjustment(), scalingType);
notify(selector, event);
}
Aggregations