Search in sources :

Example 6 with StackEvent

use of com.sequenceiq.cloudbreak.reactor.api.event.StackEvent in project cloudbreak by hortonworks.

the class ReactorFlowManager method triggerClusterReInstall.

public void triggerClusterReInstall(Long stackId) {
    String selector = FlowChainTriggers.CLUSTER_RESET_CHAIN_TRIGGER_EVENT;
    notify(selector, new StackEvent(selector, stackId));
}
Also used : StackEvent(com.sequenceiq.cloudbreak.reactor.api.event.StackEvent)

Example 7 with StackEvent

use of com.sequenceiq.cloudbreak.reactor.api.event.StackEvent in project cloudbreak by hortonworks.

the class ReactorFlowManager method triggerFullSync.

public void triggerFullSync(Long stackId) {
    String selector = FlowChainTriggers.FULL_SYNC_TRIGGER_EVENT;
    notify(selector, new StackEvent(selector, stackId));
}
Also used : StackEvent(com.sequenceiq.cloudbreak.reactor.api.event.StackEvent)

Example 8 with StackEvent

use of com.sequenceiq.cloudbreak.reactor.api.event.StackEvent in project cloudbreak by hortonworks.

the class ReactorFlowManager method triggerProvisioning.

public void triggerProvisioning(Long stackId) {
    String selector = FlowChainTriggers.FULL_PROVISION_TRIGGER_EVENT;
    notify(selector, new StackEvent(selector, stackId));
}
Also used : StackEvent(com.sequenceiq.cloudbreak.reactor.api.event.StackEvent)

Example 9 with StackEvent

use of com.sequenceiq.cloudbreak.reactor.api.event.StackEvent in project cloudbreak by hortonworks.

the class ReactorFlowManager method triggerManualRepairFlow.

public void triggerManualRepairFlow(Long stackId) {
    String selector = MANUAL_STACK_REPAIR_TRIGGER_EVENT.event();
    notify(selector, new StackEvent(selector, stackId));
}
Also used : StackEvent(com.sequenceiq.cloudbreak.reactor.api.event.StackEvent)

Example 10 with StackEvent

use of com.sequenceiq.cloudbreak.reactor.api.event.StackEvent in project cloudbreak by hortonworks.

the class ReactorFlowManager method cancelRunningFlows.

public void cancelRunningFlows(Long stackId) {
    StackEvent cancelEvent = new StackEvent(Flow2Handler.FLOW_CANCEL, stackId);
    reactor.notify(Flow2Handler.FLOW_CANCEL, eventFactory.createEventWithErrHandler(cancelEvent));
}
Also used : StackEvent(com.sequenceiq.cloudbreak.reactor.api.event.StackEvent)

Aggregations

StackEvent (com.sequenceiq.cloudbreak.reactor.api.event.StackEvent)25 Selectable (com.sequenceiq.cloudbreak.cloud.event.Selectable)10 ConcurrentLinkedQueue (java.util.concurrent.ConcurrentLinkedQueue)8 ClusterTerminationEvent (com.sequenceiq.cloudbreak.core.flow2.cluster.termination.ClusterTerminationEvent)3 StackTerminationEvent (com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationEvent)3 TerminationEvent (com.sequenceiq.cloudbreak.reactor.api.event.stack.TerminationEvent)3 Map (java.util.Map)3 Bean (org.springframework.context.annotation.Bean)3 Acceptable (com.sequenceiq.cloudbreak.cloud.Acceptable)1 CreateCredentialRequest (com.sequenceiq.cloudbreak.cloud.event.resource.CreateCredentialRequest)1 Flow (com.sequenceiq.cloudbreak.core.flow2.Flow)1 AbstractClusterAction (com.sequenceiq.cloudbreak.core.flow2.cluster.AbstractClusterAction)1 ClusterViewContext (com.sequenceiq.cloudbreak.core.flow2.cluster.ClusterViewContext)1 StackAndClusterUpscaleTriggerEvent (com.sequenceiq.cloudbreak.core.flow2.event.StackAndClusterUpscaleTriggerEvent)1 StackSyncTriggerEvent (com.sequenceiq.cloudbreak.core.flow2.event.StackSyncTriggerEvent)1 AbstractStackFailureAction (com.sequenceiq.cloudbreak.core.flow2.stack.AbstractStackFailureAction)1 StackContext (com.sequenceiq.cloudbreak.core.flow2.stack.StackContext)1 StackFailureContext (com.sequenceiq.cloudbreak.core.flow2.stack.StackFailureContext)1 DisableKerberosResultToStackEventConverter (com.sequenceiq.cloudbreak.core.flow2.stack.provision.DisableKerberosResultToStackEventConverter)1 StackView (com.sequenceiq.cloudbreak.domain.view.StackView)1