Examples of AmbariRoleAllocationComplete


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

                }
                Set<InstanceMetaData> instanceMetaData = prepareInstanceMetaData(stack, coreInstanceMetaData);
                stackUpdater.updateStackMetaData(stackId, instanceMetaData);
                stackUpdater.updateMetadataReady(stackId, true);
                LOGGER.info("Publishing {} event", ReactorConfig.AMBARI_ROLE_ALLOCATION_COMPLETE_EVENT);
                reactor.notify(ReactorConfig.AMBARI_ROLE_ALLOCATION_COMPLETE_EVENT, Event.wrap(new AmbariRoleAllocationComplete(stack,
                        getAmbariIp(instanceMetaData))));
            } else {
                LOGGER.info("Metadata is already created, ignoring '{}' event.", ReactorConfig.METADATA_SETUP_COMPLETE_EVENT);
            }
        } catch (WrongMetadataException e) {
View Full Code Here

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

        // THEN
        verify(ambariStartupListener, times(1)).waitForAmbariServer(stack.getId(), DUMMY_IP);
    }

    private Event<AmbariRoleAllocationComplete> createEvent() {
        return new Event<AmbariRoleAllocationComplete>(new AmbariRoleAllocationComplete(new Stack(), DUMMY_IP));
    }
View Full Code Here

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

    @Autowired
    private AmbariStartupListener ambariStartupListener;

    @Override
    public void accept(Event<AmbariRoleAllocationComplete> event) {
        AmbariRoleAllocationComplete provisionSuccess = event.getData();
        MDCBuilder.buildMdcContext(provisionSuccess.getStack());
        Long stackId = provisionSuccess.getStack().getId();
        String ambariIp = provisionSuccess.getAmbariIp();
        LOGGER.info("Accepted {} event.", ReactorConfig.AMBARI_ROLE_ALLOCATION_COMPLETE_EVENT);
        ambariStartupListener.waitForAmbariServer(stackId, ambariIp);
    }
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.