use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.StartAmbariFailed in project cloudbreak by hortonworks.
the class StartAmbariHandler method accept.
@Override
public void accept(Event<StartAmbariRequest> event) {
Long stackId = event.getData().getStackId();
Selectable response;
try {
ambariClusterCreationService.startAmbari(stackId);
response = new StartAmbariSuccess(stackId);
} catch (Exception e) {
response = new StartAmbariFailed(stackId, e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
Aggregations