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