use of com.sequenceiq.cloudbreak.core.flow2.cluster.config.update.event.PillarConfigUpdateFailed in project cloudbreak by hortonworks.
the class PillarConfigUpdateHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<PillarConfigUpdateRequest> event) {
PillarConfigUpdateRequest request = event.getData();
Selectable response;
try {
pillarConfigUpdateService.doConfigUpdate(request.getResourceId());
response = new PillarConfigUpdateSuccess(request.getResourceId());
} catch (Exception e) {
LOGGER.warn("Pillar configuration update failed.", e);
response = new PillarConfigUpdateFailed(request.getResourceId(), e);
}
return response;
}
use of com.sequenceiq.cloudbreak.core.flow2.cluster.config.update.event.PillarConfigUpdateFailed in project cloudbreak by hortonworks.
the class ClusterStartPillarConfigUpdateHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<ClusterStartPillarConfigUpdateRequest> event) {
ClusterStartPillarConfigUpdateRequest request = event.getData();
Selectable response;
try {
pillarConfigUpdateService.doConfigUpdate(request.getResourceId());
response = new ClusterStartPillarConfigUpdateResult(request);
} catch (Exception e) {
LOGGER.warn("Pillar configuration update failed.", e);
response = new PillarConfigUpdateFailed(request.getResourceId(), e);
}
return response;
}
Aggregations