use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.EphemeralClusterUpdateSuccess in project cloudbreak by hortonworks.
the class EphemeralClusterUpdateHandler method accept.
@Override
public void accept(Event<EphemeralClusterUpdateRequest> event) {
EphemeralClusterUpdateRequest request = event.getData();
Selectable response;
try {
clusterServiceRunner.updateSaltState(request.getStackId());
response = new EphemeralClusterUpdateSuccess(request.getStackId());
} catch (Exception e) {
response = new EphemeralClusterUpdateFailed(request.getStackId(), e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
Aggregations