use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.EphemeralClusterUpdateTriggerEvent in project cloudbreak by hortonworks.
the class ReactorFlowManager method triggerEphemeralUpdate.
public void triggerEphemeralUpdate(Long stackId) {
String selector = EphemeralClusterEvent.EPHEMERAL_CLUSTER_UPDATE_TRIGGER_EVENT.event();
notify(selector, new EphemeralClusterUpdateTriggerEvent(selector, stackId));
}
use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.EphemeralClusterUpdateTriggerEvent in project cloudbreak by hortonworks.
the class EphemeralClusterActions method updateNameserverAction.
@Bean(name = "EPHEMERAL_CLUSTER_UPDATE_STATE")
public Action<?, ?> updateNameserverAction() {
return new AbstractClusterAction<EphemeralClusterUpdateTriggerEvent>(EphemeralClusterUpdateTriggerEvent.class) {
@Override
protected void doExecute(ClusterViewContext context, EphemeralClusterUpdateTriggerEvent payload, Map<Object, Object> variables) {
ephemeralClusterService.updateClusterStarted(context.getStackId());
Selectable request = new EphemeralClusterUpdateRequest(context.getStackId());
sendEvent(context.getFlowId(), request.selector(), request);
}
};
}
Aggregations