use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.StartAmbariServicesSuccess in project cloudbreak by hortonworks.
the class StartAmbariServicesHandler method accept.
@Override
public void accept(Event<StartAmbariServicesRequest> event) {
Long stackId = event.getData().getStackId();
Selectable response;
try {
clusterServiceRunner.runAmbariServices(stackId);
response = new StartAmbariServicesSuccess(stackId);
} catch (Exception e) {
response = new StartAmbariServicesFailed(stackId, e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
Aggregations