Examples of UpdateAmbariHostsFailure


Examples of com.sequenceiq.cloudbreak.service.cluster.event.UpdateAmbariHostsFailure

    @Autowired
    private RetryingStackUpdater stackUpdater;

    @Override
    public void accept(Event<UpdateAmbariHostsFailure> event) {
        UpdateAmbariHostsFailure data = event.getData();
        Cluster cluster = clusterRepository.findById(data.getClusterId());
        MDCBuilder.buildMdcContext(cluster);
        LOGGER.info("Accepted {} event.", ReactorConfig.UPDATE_AMBARI_HOSTS_FAILED_EVENT);
        cluster.setStatus(Status.AVAILABLE);
        cluster.setStatusReason(data.getDetailedMessage());
        clusterRepository.save(cluster);
        Stack stack = stackRepository.findStackForCluster(cluster.getId());
        stackUpdater.updateStackStatus(stack.getId(), Status.AVAILABLE);
        websocketService.sendToTopicUser(cluster.getOwner(), WebsocketEndPoint.CLUSTER, new StatusMessage(data.getClusterId(), cluster.getName(),
                "UPDATE_FAILED"));
    }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.service.cluster.event.UpdateAmbariHostsFailure

    }

    private void updateHostFailed(Cluster cluster, String message) {
        MDCBuilder.buildMdcContext(cluster);
        LOGGER.info("Publishing {} event", ReactorConfig.UPDATE_AMBARI_HOSTS_FAILED_EVENT);
        reactor.notify(ReactorConfig.UPDATE_AMBARI_HOSTS_FAILED_EVENT, Event.wrap(new UpdateAmbariHostsFailure(cluster.getId(), message)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.