Package org.apache.qpid.server.store.handler

Examples of org.apache.qpid.server.store.handler.ConfiguredObjectRecordHandler


        final Map<UUID, Object> quiescedEntries = new HashMap<UUID, Object>();
        final int managementModeRmiPortOverride = options.getManagementModeRmiPortOverride();
        final int managementModeJmxPortOverride = options.getManagementModeJmxPortOverride();
        final int managementModeHttpPortOverride = options.getManagementModeHttpPortOverride();

        _store.visitConfiguredObjectRecords(new ConfiguredObjectRecordHandler()
        {
            @Override
            public void begin()
            {
View Full Code Here


        final List<ConfiguredObjectRecord> records = new ArrayList<>();

        // Transitioning to STOPPED will have closed all our children.  Now we are transition
        // back to ACTIVE, we need to recover and re-open them.

        getDurableConfigurationStore().visitConfiguredObjectRecords(new ConfiguredObjectRecordHandler()
        {
            @Override
            public void begin()
            {
            }
View Full Code Here

        {
            @Override
            public Object answer(final InvocationOnMock invocation) throws Throwable
            {
                Iterator<ConfiguredObjectRecord> iterator = asList(records).iterator();
                ConfiguredObjectRecordHandler handler = (ConfiguredObjectRecordHandler) invocation.getArguments()[0];
                handler.begin();
                boolean handlerContinue = true;
                while(iterator.hasNext() && handlerContinue)
                {
                    handlerContinue = handler.handle(iterator.next());
                }
                handler.end();
                return null;
            }
        }).when(_durableConfigurationStore).visitConfiguredObjectRecords(any(ConfiguredObjectRecordHandler.class));
    }
View Full Code Here

                new Answer()
                {
                    @Override
                    public Object answer(final InvocationOnMock invocation) throws Throwable
                    {
                        ConfiguredObjectRecordHandler recoverer = recovererArgumentCaptor.getValue();
                        if(recoverer.handle(_root))
                        {
                            recoverer.handle(_portEntry);
                        }
                        return null;
                    }
                }
                ).when(_store).visitConfiguredObjectRecords(recovererArgumentCaptor.capture());
View Full Code Here

                new Answer()
                {
                    @Override
                    public Object answer(final InvocationOnMock invocation) throws Throwable
                    {
                        ConfiguredObjectRecordHandler recoverer = recovererArgumentCaptor.getValue();
                        if(recoverer.handle(_root))
                        {
                            if(recoverer.handle(_portEntry))
                            {
                                recoverer.handle(virtualHost);
                            }
                        }
                        return null;
                    }
                }
View Full Code Here

            final Iterator<ConfiguredObjectRecord> corIterator = asList(queueCor, exchangeCor, virtualHostCor).iterator();

            @Override
            public Object answer(final InvocationOnMock invocation) throws Throwable
            {
                ConfiguredObjectRecordHandler handler = (ConfiguredObjectRecordHandler) invocation.getArguments()[0];
                boolean handlerContinue = true;
                while(corIterator.hasNext() && handlerContinue)
                {
                    handlerContinue = handler.handle(corIterator.next());
                }

                return null;
            }
        }).when(_configStore).visitConfiguredObjectRecords(any(ConfiguredObjectRecordHandler.class));
View Full Code Here

        catch (IOException e)
        {
            throw new RuntimeException("Unable to load initial store", e);
        }

        _store.visitConfiguredObjectRecords(new ConfiguredObjectRecordHandler()
        {
            @Override
            public boolean handle(ConfiguredObjectRecord record)
            {
                Map<String, Object> attributes = record.getAttributes();
View Full Code Here

        parentObject.open();
        DurableConfigurationStore configurationStore = parentObject.getConfigurationStore();
        configurationStore.closeConfigurationStore();

        final List<ConfiguredObjectRecord> initialRecords = new ArrayList<>();
        _store.visitConfiguredObjectRecords(new ConfiguredObjectRecordHandler()
        {
            @Override
            public void begin()
            {
View Full Code Here

            if(category == VirtualHostNode.class)
            {
                final List<ConfiguredObjectRecord> aliasRecords = new ArrayList<>();
                // remove vhost aliases associated with the vhost
                final ConfiguredObjectRecordHandler visitor = new ConfiguredObjectRecordHandler()
                {
                    @Override
                    public void begin()
                    {
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.store.handler.ConfiguredObjectRecordHandler

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.