Package org.apache.activemq.broker.region

Examples of org.apache.activemq.broker.region.AbstractRegion


        return found;
    }

    private final Collection<Subscription> getRegionSubscriptions(boolean isTopic) {
        RegionBroker region = (RegionBroker) brokerService.getRegionBroker();
        AbstractRegion abstractRegion = (AbstractRegion)
            (isTopic ? region.getTopicRegion() : region.getQueueRegion());
        return abstractRegion.getSubscriptions().values();
    }
View Full Code Here


        return found;
    }

    private final Collection<Subscription> getRegionSubscriptions(boolean isTopic) {
        RegionBroker region = (RegionBroker) brokerService.getRegionBroker();
        AbstractRegion abstractRegion = (AbstractRegion)
            (isTopic ? region.getTopicRegion() : region.getQueueRegion());
        return abstractRegion.getSubscriptions().values();
    }
View Full Code Here

        return found;
    }

    private final Collection<Subscription> getRegionSubscriptions(boolean isTopic) {
        RegionBroker region = (RegionBroker) brokerService.getRegionBroker();
        AbstractRegion abstractRegion = (AbstractRegion)
            (isTopic ? region.getTopicRegion() : region.getQueueRegion());
        return abstractRegion.getSubscriptions().values();
    }
View Full Code Here

        assertTrue("executor done on time", threadService.awaitTermination(30l, TimeUnit.SECONDS));

        // for the real test... we should not have any subscriptions left on broker C for the temp dests
        BrokerItem brokerC = brokers.get(BROKER_C);
        RegionBroker regionBroker = (RegionBroker) brokerC.broker.getRegionBroker();
        final AbstractRegion region = (AbstractRegion) regionBroker.getTempQueueRegion();

        assertTrue("There were no lingering temp-queue destinations", Wait.waitFor(new Wait.Condition() {
            @Override
            public boolean isSatisified() throws Exception {
                LOG.info("Lingering temps: " + region.getSubscriptions().size());
                return 0 == region.getSubscriptions().size();
            }
        }));
    }
View Full Code Here

        }

        // for the real test... we should not have any subscriptions left on broker C for the temp dests
        BrokerItem brokerC = brokers.get(BROKER_C);
        RegionBroker regionBroker = (RegionBroker) brokerC.broker.getRegionBroker();
        final AbstractRegion region = (AbstractRegion) regionBroker.getTempQueueRegion();

        assertTrue("There were no lingering temp-queue destinations", Wait.waitFor(new Wait.Condition() {
            @Override
            public boolean isSatisified() throws Exception {
                LOG.info("Lingering temps: " + region.getSubscriptions().size());
                return 0 == region.getSubscriptions().size();
            }
        }));

    }
View Full Code Here

        return found;
    }

    private final Collection<Subscription> getRegionSubscriptions(boolean isTopic) {
        RegionBroker region = (RegionBroker) brokerService.getRegionBroker();
        AbstractRegion abstractRegion = (AbstractRegion)
            (isTopic ? region.getTopicRegion() : region.getQueueRegion());
        return abstractRegion.getSubscriptions().values();
    }
View Full Code Here

        assertTrue("executor done on time", threadService.awaitTermination(10l, TimeUnit.SECONDS));

        // for the real test... we should not have any subscriptions left on broker C for the temp dests
        BrokerItem brokerC = brokers.get(BROKER_C);
        RegionBroker regionBroker = (RegionBroker) brokerC.broker.getRegionBroker();
        final AbstractRegion region = (AbstractRegion) regionBroker.getTempQueueRegion();

        assertTrue("There were no lingering temp-queue destinations", Wait.waitFor(new Wait.Condition() {
            @Override
            public boolean isSatisified() throws Exception {
                LOG.info("Lingering temps: " + region.getSubscriptions().size());
                return 0 == region.getSubscriptions().size();
            }
        }));
    }
View Full Code Here

        }

        // for the real test... we should not have any subscriptions left on broker C for the temp dests
        BrokerItem brokerC = brokers.get(BROKER_C);
        RegionBroker regionBroker = (RegionBroker) brokerC.broker.getRegionBroker();
        final AbstractRegion region = (AbstractRegion) regionBroker.getTempQueueRegion();

        assertTrue("There were no lingering temp-queue destinations", Wait.waitFor(new Wait.Condition() {
            @Override
            public boolean isSatisified() throws Exception {
                LOG.info("Lingering temps: " + region.getSubscriptions().size());
                return 0 == region.getSubscriptions().size();
            }
        }));

    }
View Full Code Here

        return found;
    }

    private final Collection<Subscription> getRegionSubscriptions(boolean isTopic) {
        RegionBroker region = (RegionBroker) brokerService.getRegionBroker();
        AbstractRegion abstractRegion = (AbstractRegion)
            (isTopic ? region.getTopicRegion() : region.getQueueRegion());
        return abstractRegion.getSubscriptions().values();
    }
View Full Code Here

        return found;
    }

    private final Collection<Subscription> getRegionSubscriptions(boolean isTopic) {
        RegionBroker region = (RegionBroker) brokerService.getRegionBroker();
        AbstractRegion abstractRegion = (AbstractRegion)
            (isTopic ? region.getTopicRegion() : region.getQueueRegion());
        return abstractRegion.getSubscriptions().values();
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.broker.region.AbstractRegion

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.