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