Search in sources :

Example 1 with ConfigureClusterManagerManagementServicesFailed

use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ConfigureClusterManagerManagementServicesFailed in project cloudbreak by hortonworks.

the class ConfigureClusterManagerManagementServicesHandler method doAccept.

@Override
protected Selectable doAccept(HandlerEvent<ConfigureClusterManagerManagementServicesRequest> event) {
    Long stackId = event.getData().getResourceId();
    Selectable response;
    try {
        clusterBuilderService.configureManagementServices(stackId);
        response = new ConfigureClusterManagerManagementServicesSuccess(stackId);
    } catch (RuntimeException e) {
        LOGGER.error("ConfigureClusterManagerManagementServicesHandler step failed with the following message: {}", e.getMessage());
        response = new ConfigureClusterManagerManagementServicesFailed(stackId, e);
    }
    return response;
}
Also used : ConfigureClusterManagerManagementServicesFailed(com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ConfigureClusterManagerManagementServicesFailed) Selectable(com.sequenceiq.cloudbreak.common.event.Selectable) ConfigureClusterManagerManagementServicesSuccess(com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ConfigureClusterManagerManagementServicesSuccess)

Aggregations

Selectable (com.sequenceiq.cloudbreak.common.event.Selectable)1 ConfigureClusterManagerManagementServicesFailed (com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ConfigureClusterManagerManagementServicesFailed)1 ConfigureClusterManagerManagementServicesSuccess (com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ConfigureClusterManagerManagementServicesSuccess)1