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