use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.DnsUpdateFinished in project cloudbreak by hortonworks.
the class ClusterStartActions method updateClusterDnsEntriesInPem.
@Bean(name = "UPDATING_DNS_IN_PEM_STATE")
public Action<?, ?> updateClusterDnsEntriesInPem() {
return new AbstractClusterAction<>(ClusterStartPillarConfigUpdateResult.class) {
@Override
protected void doExecute(ClusterViewContext context, ClusterStartPillarConfigUpdateResult payload, Map<Object, Object> variables) {
Stack stack = getStackService().getByIdWithListsInTransaction(payload.getResourceId());
clusterStartService.updateDnsEntriesInPem(stack);
sendEvent(context);
}
@Override
protected Selectable createRequest(ClusterViewContext context) {
return new DnsUpdateFinished(context.getStackId());
}
};
}
Aggregations