Search in sources :

Example 1 with OrchestratorConfigFailed

use of com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigFailed in project cloudbreak by hortonworks.

the class OrchestratorConfigHandler method doAccept.

@Override
protected Selectable doAccept(HandlerEvent<OrchestratorConfigRequest> event) {
    OrchestratorConfigRequest request = event.getData();
    Selectable response;
    try {
        freeIpaOrchestrationConfigService.configureOrchestrator(request.getResourceId());
        response = new OrchestratorConfigSuccess(request.getResourceId());
    } catch (Exception e) {
        LOGGER.error("FreeIPA orchestration configuration failed", e);
        response = new OrchestratorConfigFailed(request.getResourceId(), e);
    }
    return response;
}
Also used : Selectable(com.sequenceiq.cloudbreak.common.event.Selectable) OrchestratorConfigSuccess(com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigSuccess) OrchestratorConfigRequest(com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigRequest) OrchestratorConfigFailed(com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigFailed)

Aggregations

Selectable (com.sequenceiq.cloudbreak.common.event.Selectable)1 OrchestratorConfigFailed (com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigFailed)1 OrchestratorConfigRequest (com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigRequest)1 OrchestratorConfigSuccess (com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigSuccess)1