use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.AutoConfigureClusterManagerFailed in project cloudbreak by hortonworks.
the class AutoConfigureClusterManagerHandler method accept.
@Override
public void accept(Event<AutoConfigureClusterManagerRequest> event) {
Long stackId = event.getData().getResourceId();
Selectable response;
try {
clusterBuilderService.autoConfigureCluster(stackId);
response = new AutoConfigureClusterManagerSuccess(stackId);
} catch (RuntimeException | ClusterClientInitException | CloudbreakException e) {
LOGGER.error("Failed to autoconfigure Cloudera Manager cluster: {}", e.getMessage());
response = new AutoConfigureClusterManagerFailed(stackId, e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
Aggregations