use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.HostMetadataSetupFailed in project cloudbreak by hortonworks.
the class HostMetadataSetupHandler method accept.
@Override
public void accept(Event<HostMetadataSetupRequest> event) {
StackEvent request = event.getData();
Selectable response;
try {
hostMetadataSetup.setupHostMetadata(request.getStackId());
response = new HostMetadataSetupSuccess(request.getStackId());
} catch (Exception e) {
response = new HostMetadataSetupFailed(request.getStackId(), e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
Aggregations