Package com.sequenceiq.cloudbreak.service.stack.event

Examples of com.sequenceiq.cloudbreak.service.stack.event.StackOperationFailure


        verify(websocketService, times(1)).sendToTopicUser(anyString(), any(WebsocketEndPoint.class), any());
        verify(cloudbreakEventService, times(1)).fireCloudbreakEvent(anyLong(), anyString(), anyString());
    }

    private Event<StackOperationFailure> createEvent() {
        StackOperationFailure data = new StackOperationFailure(1L, "message");
        return new Event<StackOperationFailure>(data);
    }
View Full Code Here


    @Autowired
    private WebsocketService websocketService;

    @Override
    public void accept(Event<StackOperationFailure> event) {
        StackOperationFailure stackOperationFailure = event.getData();
        Long stackId = stackOperationFailure.getStackId();
        Stack byId = stackRepository.findById(stackId);
        MDCBuilder.buildMdcContext(byId);
        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.service.stack.event.StackOperationFailure

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.