use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.BootstrapMachinesSuccess in project cloudbreak by hortonworks.
the class BootstrapMachineHandler method accept.
@Override
public void accept(Event<BootstrapMachinesRequest> event) {
BootstrapMachinesRequest request = event.getData();
Selectable response;
try {
clusterBootstrapper.bootstrapMachines(request.getStackId());
response = new BootstrapMachinesSuccess(request.getStackId());
} catch (Exception e) {
response = new BootstrapMachinesFailed(request.getStackId(), e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
Aggregations