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

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


        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

        _quiescedEntriesOriginalState = quiesceEntries(_options);


        _records = new HashMap<UUID, ConfiguredObjectRecord>();
        final ConfiguredObjectRecordHandler localRecoveryHandler = new ConfiguredObjectRecordHandler()
        {
            private int _version;
            private boolean _quiesceRmiPort = _options.getManagementModeRmiPortOverride() > 0;
            private boolean _quiesceJmxPort = _options.getManagementModeJmxPortOverride() > 0;
            private boolean _quiesceHttpPort = _options.getManagementModeHttpPortOverride() > 0;
View Full Code Here

        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

                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

        return new ArrayList<ConfiguredObjectRecord>(_records.values());
    }

    public void upgrade()
    {
        ConfiguredObjectRecordHandler handler = new ConfiguredObjectRecordHandler()
        {
            @Override
            public void begin()
            {
            }
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

        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

        _quiescedEntriesOriginalState = quiesceEntries(_options);


        _records = new HashMap<UUID, ConfiguredObjectRecord>();
        final ConfiguredObjectRecordHandler localRecoveryHandler = new ConfiguredObjectRecordHandler()
        {
            private int _version;
            private boolean _quiesceRmiPort = _options.getManagementModeRmiPortOverride() > 0;
            private boolean _quiesceJmxPort = _options.getManagementModeJmxPortOverride() > 0;
            private boolean _quiesceHttpPort = _options.getManagementModeHttpPortOverride() > 0;
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.