Package com.sequenceiq.cloudbreak.websocket.message

Examples of com.sequenceiq.cloudbreak.websocket.message.StatusMessage


                        copyStatusFromServer.get("copiedBytes"),
                        copyStatusFromServer.get("totalBytes"),
                        copyPercentage));

                websocketService.sendToTopicUser(stack.getOwner(), WebsocketEndPoint.COPY_IMAGE,
                        new StatusMessage(stack.getId(), stack.getName(), PENDING, String.format("The copy status is: %s%%.", copyPercentage)));
                retryingStackUpdater.updateStackStatusReason(stack.getId(), String.format("The copy status is: %s%%.", copyPercentage));
                try {
                    Thread.sleep(MILLIS);
                } catch (InterruptedException e) {
                    LOGGER.info("Interrupted exception occured during sleep.", e);
View Full Code Here


        Stack stack = stackRepository.findById(stackId);
        MDCBuilder.buildMdcContext(stack);
        try {
            if (stack.getStatus().equals(Status.REQUESTED)) {
                stack = stackUpdater.updateStackStatus(stack.getId(), Status.CREATE_IN_PROGRESS);
                websocketService.sendToTopicUser(stack.getOwner(), WebsocketEndPoint.STACK, new StatusMessage(stack.getId(), stack.getName(), stack
                        .getStatus().name()));
                stackUpdater.updateStackStatusReason(stack.getId(), stack.getStatus().name());
                if (!cloudPlatform.isWithTemplate()) {
                    stackUpdater.updateStackStatus(stack.getId(), Status.REQUESTED);
                    Set<Resource> resourceSet = new HashSet<>();
View Full Code Here

        Stack stack = stackUpdater.updateAmbariIp(stackId, ambariIp);
        MDCBuilder.buildMdcContext(stack);
        LOGGER.info("Accepted {} event.", ReactorConfig.STACK_CREATE_SUCCESS_EVENT, stackId);
        stack = stackUpdater.updateStackStatus(stackId, Status.AVAILABLE);
        websocketService.sendToTopicUser(stack.getOwner(), WebsocketEndPoint.STACK,
                new StatusMessage(stackId, stack.getName(), Status.AVAILABLE.name()));
        stackUpdater.updateStackStatusReason(stack.getId(), "");
        LOGGER.info("Publishing {} event.", ReactorConfig.AMBARI_STARTED_EVENT);
        reactor.notify(ReactorConfig.AMBARI_STARTED_EVENT, Event.wrap(stack));
    }
View Full Code Here

        LOGGER.info("Accepted {} event.", ReactorConfig.STACK_UPDATE_FAILED_EVENT);
        String detailedMessage = stackOperationFailure.getDetailedMessage();
        stackUpdater.updateMetadataReady(stackId, true);
        Stack stack = stackUpdater.updateStackStatus(stackId, Status.AVAILABLE, "Stack update failed. " + detailedMessage);
        websocketService.sendToTopicUser(stack.getOwner(), WebsocketEndPoint.STACK,
                new StatusMessage(stackId, stack.getName(), "UPDATE_FAILED", detailedMessage));
        stackUpdater.updateStackStatusReason(stack.getId(), detailedMessage);
    }
View Full Code Here

TOP

Related Classes of com.sequenceiq.cloudbreak.websocket.message.StatusMessage

Copyright © 2018 www.massapicom. 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.