Search in sources :

Example 6 with RemoveDnsResponse

use of com.sequenceiq.freeipa.flow.freeipa.cleanup.event.dns.RemoveDnsResponse in project cloudbreak by hortonworks.

the class RemoveDnsResponseToDownscaleFailureEventConverter method convert.

@Override
public DownscaleFailureEvent convert(Object payload) {
    RemoveDnsResponse removeDnsResponse = (RemoveDnsResponse) payload;
    DownscaleFailureEvent event = new DownscaleFailureEvent(removeDnsResponse.getResourceId(), "DNS record removal", removeDnsResponse.getDnsCleanupSuccess(), removeDnsResponse.getDnsCleanupFailed(), new Exception("Payload failed: " + payload));
    return event;
}
Also used : RemoveDnsResponse(com.sequenceiq.freeipa.flow.freeipa.cleanup.event.dns.RemoveDnsResponse) DownscaleFailureEvent(com.sequenceiq.freeipa.flow.freeipa.downscale.event.DownscaleFailureEvent)

Aggregations

RemoveDnsResponse (com.sequenceiq.freeipa.flow.freeipa.cleanup.event.dns.RemoveDnsResponse)6 Map (java.util.Map)4 Bean (org.springframework.context.annotation.Bean)3 RemoveDnsRequest (com.sequenceiq.freeipa.flow.freeipa.cleanup.event.dns.RemoveDnsRequest)2 FreeIpa (com.sequenceiq.freeipa.entity.FreeIpa)1 CleanupEvent (com.sequenceiq.freeipa.flow.freeipa.cleanup.CleanupEvent)1 RemoveHostsResponse (com.sequenceiq.freeipa.flow.freeipa.cleanup.event.host.RemoveHostsResponse)1 RemoveVaultEntriesRequest (com.sequenceiq.freeipa.flow.freeipa.cleanup.event.vault.RemoveVaultEntriesRequest)1 RemoveVaultEntriesResponse (com.sequenceiq.freeipa.flow.freeipa.cleanup.event.vault.RemoveVaultEntriesResponse)1 DownscaleFailureEvent (com.sequenceiq.freeipa.flow.freeipa.downscale.event.DownscaleFailureEvent)1 UpdateDnsSoaRecordsRequest (com.sequenceiq.freeipa.flow.freeipa.downscale.event.dnssoarecords.UpdateDnsSoaRecordsRequest)1 StackContext (com.sequenceiq.freeipa.flow.stack.StackContext)1 Set (java.util.Set)1 Event (reactor.bus.Event)1