package com.sequenceiq.cloudbreak.core.flow2.stack.stop; import com.sequenceiq.cloudbreak.core.flow2.FlowState; import com.sequenceiq.cloudbreak.core.flow2.RestartAction; import com.sequenceiq.cloudbreak.core.flow2.restart.DefaultRestartAction; public enum StackStopState implements FlowState { INIT_STATE, STOP_FAILED_STATE, STOP_STATE(StackStopRestartAction.class), STOP_FINISHED_STATE, FINAL_STATE; private Class<? extends DefaultRestartAction> restartAction = DefaultRestartAction.class; StackStopState() { } StackStopState(Class<? extends DefaultRestartAction> restartAction) { this.restartAction = restartAction; } @Override public Class<? extends RestartAction> restartAction() { return restartAction; } }