/** * Get all the Destinations that are in storage * * @return Set of all stored destinations */ @SuppressWarnings("rawtypes") public Set getDurableDestinations() { return destinationFactory.getDestinations(); }
@Override public Set<ActiveMQDestination> getDurableDestinations() { return destinationFactory.getDestinations(); }
/** * @return all Destinations that don't have active consumers */ protected Set<ActiveMQDestination> getInactiveDestinations() { Set<ActiveMQDestination> inactiveDests = destinationFactory.getDestinations(); destinationsLock.readLock().lock(); try { inactiveDests.removeAll(destinations.keySet()); } finally { destinationsLock.readLock().unlock(); } return inactiveDests; }
protected void buildExistingSubscriptions() throws Exception { Map<SubscriptionKey, SubscriptionInfo> subscriptions = new HashMap<SubscriptionKey, SubscriptionInfo>(); Set<ActiveMQDestination> destinations = destinationFactory.getDestinations(); if (destinations != null) { for (ActiveMQDestination dest : destinations) { if (dest.isTopic()) { SubscriptionInfo[] infos = destinationFactory.getAllDurableSubscriptions((ActiveMQTopic)dest); if (infos != null) { for (int i = 0; i < infos.length; i++) { SubscriptionInfo info = infos[i]; SubscriptionKey key = new SubscriptionKey(info); if (!alreadyKnown(key)) { LOG.debug("Restoring durable subscription MBean {}", info); subscriptions.put(key, info); } } } } } } for (Map.Entry<SubscriptionKey, SubscriptionInfo> entry : subscriptions.entrySet()) { addInactiveSubscription(entry.getKey(), entry.getValue(), null); } }
protected void startVirtualConsumerDestinations() throws Exception { checkStartException(); ConnectionContext adminConnectionContext = getAdminConnectionContext(); Set<ActiveMQDestination> destinations = destinationFactory.getDestinations(); DestinationFilter filter = getVirtualTopicConsumerDestinationFilter(); if (!destinations.isEmpty()) { for (ActiveMQDestination destination : destinations) { if (filter.matches(destination) == true) { broker.addDestination(adminConnectionContext, destination, false); } } } }
/** * Get all the Destinations that are in storage * * @return Set of all stored destinations */ @SuppressWarnings("rawtypes") public Set getDurableDestinations() { return destinationFactory.getDestinations(); }
/** * Get all the Destinations that are in storage * * @return Set of all stored destinations */ @SuppressWarnings("rawtypes") public Set getDurableDestinations() { return destinationFactory.getDestinations(); }
/** * Get all the Destinations that are in storage * * @return Set of all stored destinations */ @SuppressWarnings("rawtypes") public Set getDurableDestinations() { return destinationFactory.getDestinations(); }
/** * Get all the Destinations that are in storage * * @return Set of all stored destinations */ public Set getDurableDestinations() { return destinationFactory.getDestinations(); }
@Override public Set<ActiveMQDestination> getDurableDestinations() { return destinationFactory.getDestinations(); }
@Override public Set<ActiveMQDestination> getDurableDestinations() { return destinationFactory.getDestinations(); }
@Override public Set<ActiveMQDestination> getDurableDestinations() { return destinationFactory.getDestinations(); }
@Override public Set<ActiveMQDestination> getDurableDestinations() { return destinationFactory.getDestinations(); }
/** * @return all Destinations that don't have active consumers */ protected Set<ActiveMQDestination> getInactiveDestinations() { Set<ActiveMQDestination> inactiveDests = destinationFactory.getDestinations(); synchronized (destinationsMutex) { inactiveDests.removeAll(destinations.keySet()); } return inactiveDests; }
/** * @return all Destinations that don't have active consumers */ protected Set<ActiveMQDestination> getInactiveDestinations() { Set<ActiveMQDestination> inactiveDests = destinationFactory.getDestinations(); destinationsLock.readLock().lock(); try { inactiveDests.removeAll(destinations.keySet()); } finally { destinationsLock.readLock().unlock(); } return inactiveDests; }
/** * @return all Destinations that don't have active consumers */ protected Set<ActiveMQDestination> getInactiveDestinations() { Set<ActiveMQDestination> inactiveDests = destinationFactory.getDestinations(); destinationsLock.readLock().lock(); try { inactiveDests.removeAll(destinations.keySet()); } finally { destinationsLock.readLock().unlock(); } return inactiveDests; }
/** * @return all Destinations that don't have active consumers */ protected Set<ActiveMQDestination> getInactiveDestinations() { Set<ActiveMQDestination> inactiveDests = destinationFactory.getDestinations(); destinationsLock.readLock().lock(); try { inactiveDests.removeAll(destinations.keySet()); } finally { destinationsLock.readLock().unlock(); } return inactiveDests; }
protected void startVirtualConsumerDestinations() throws Exception { checkStartException(); ConnectionContext adminConnectionContext = getAdminConnectionContext(); Set<ActiveMQDestination> destinations = destinationFactory.getDestinations(); DestinationFilter filter = getVirtualTopicConsumerDestinationFilter(); if (!destinations.isEmpty()) { for (ActiveMQDestination destination : destinations) { if (filter.matches(destination) == true) { broker.addDestination(adminConnectionContext, destination, false); } } } }
protected void startVirtualConsumerDestinations() throws Exception { checkStartException(); ConnectionContext adminConnectionContext = getAdminConnectionContext(); Set<ActiveMQDestination> destinations = destinationFactory.getDestinations(); DestinationFilter filter = getVirtualTopicConsumerDestinationFilter(); if (!destinations.isEmpty()) { for (ActiveMQDestination destination : destinations) { if (filter.matches(destination) == true) { broker.addDestination(adminConnectionContext, destination, false); } } } }
protected void startVirtualConsumerDestinations() throws Exception { checkStartException(); ConnectionContext adminConnectionContext = getAdminConnectionContext(); Set<ActiveMQDestination> destinations = destinationFactory.getDestinations(); DestinationFilter filter = getVirtualTopicConsumerDestinationFilter(); if (!destinations.isEmpty()) { for (ActiveMQDestination destination : destinations) { if (filter.matches(destination) == true) { broker.addDestination(adminConnectionContext, destination, false); } } } }