use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ConfigureClusterManagerManagementServicesFailed in project cloudbreak by hortonworks.
the class ConfigureClusterManagerManagementServicesHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<ConfigureClusterManagerManagementServicesRequest> event) {
Long stackId = event.getData().getResourceId();
Selectable response;
try {
clusterBuilderService.configureManagementServices(stackId);
response = new ConfigureClusterManagerManagementServicesSuccess(stackId);
} catch (RuntimeException e) {
LOGGER.error("ConfigureClusterManagerManagementServicesHandler step failed with the following message: {}", e.getMessage());
response = new ConfigureClusterManagerManagementServicesFailed(stackId, e);
}
return response;
}
Aggregations