@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return longTermStore.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return ((TopicMessageStore)delegate).getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllDurableSubscriptions(ActiveMQTopic topic) throws IOException { return persistenceAdapter.createTopicMessageStore(topic).getAllSubscriptions(); } }
/** * Searches the set of subscriptions from the given persistence adapter and returns all those * that belong to the given ClientId value. * * @param adapter * the persistence adapter instance to search within. * @param clientId * the client ID value used to filter the subscription set. * * @return a list of all subscriptions belonging to the given client. * * @throws IOException if an error occurs while listing the stored subscriptions. */ static public List<SubscriptionInfo> listSubscriptions(PersistenceAdapter adapter, String clientId) throws IOException { ArrayList<SubscriptionInfo> rc = new ArrayList<SubscriptionInfo>(); for (ActiveMQDestination destination : adapter.getDestinations()) { if (destination.isTopic()) { TopicMessageStore store = adapter.createTopicMessageStore((ActiveMQTopic) destination); for (SubscriptionInfo sub : store.getAllSubscriptions()) { if (clientId == sub.getClientId() || clientId.equals(sub.getClientId())) { rc.add(sub); } } } } return rc; }
SubscriptionInfo[] infos = store.getAllSubscriptions(); for (int i = 0; i < infos.length; i++) {
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return longTermStore.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return delegate.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return delegate.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return longTermStore.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return longTermStore.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllSubscriptions() throws IOException { return delegate.getAllSubscriptions(); }
public SubscriptionInfo[] getAllSubscriptions() throws IOException { return longTermStore.getAllSubscriptions(); }
public SubscriptionInfo[] getAllSubscriptions() throws IOException { return delegate.getAllSubscriptions(); }
@Override public SubscriptionInfo[] getAllDurableSubscriptions(ActiveMQTopic topic) throws IOException { return persistenceAdapter.createTopicMessageStore(topic).getAllSubscriptions(); } }
@Override public SubscriptionInfo[] getAllDurableSubscriptions(ActiveMQTopic topic) throws IOException { return persistenceAdapter.createTopicMessageStore(topic).getAllSubscriptions(); } }
@Override public SubscriptionInfo[] getAllDurableSubscriptions(ActiveMQTopic topic) throws IOException { return persistenceAdapter.createTopicMessageStore(topic).getAllSubscriptions(); } }
@Override public SubscriptionInfo[] getAllDurableSubscriptions(ActiveMQTopic topic) throws IOException { return persistenceAdapter.createTopicMessageStore(topic).getAllSubscriptions(); } }
/** * Searches the set of subscriptions from the given persistence adapter and returns all those * that belong to the given ClientId value. * * @param adapter * the persistence adapter instance to search within. * @param clientId * the client ID value used to filter the subscription set. * * @return a list of all subscriptions belonging to the given client. * * @throws IOException if an error occurs while listing the stored subscriptions. */ static public List<SubscriptionInfo> listSubscriptions(PersistenceAdapter adapter, String clientId) throws IOException { ArrayList<SubscriptionInfo> rc = new ArrayList<SubscriptionInfo>(); for (ActiveMQDestination destination : adapter.getDestinations()) { if (destination.isTopic()) { TopicMessageStore store = adapter.createTopicMessageStore((ActiveMQTopic) destination); for (SubscriptionInfo sub : store.getAllSubscriptions()) { if (clientId == sub.getClientId() || clientId.equals(sub.getClientId())) { rc.add(sub); } } } } return rc; }
/** * Searches the set of subscriptions from the given persistence adapter and returns all those * that belong to the given ClientId value. * * @param adapter * the persistence adapter instance to search within. * @param clientId * the client ID value used to filter the subscription set. * * @return a list of all subscriptions belonging to the given client. * * @throws IOException if an error occurs while listing the stored subscriptions. */ static public List<SubscriptionInfo> listSubscriptions(PersistenceAdapter adapter, String clientId) throws IOException { ArrayList<SubscriptionInfo> rc = new ArrayList<SubscriptionInfo>(); for (ActiveMQDestination destination : adapter.getDestinations()) { if (destination.isTopic()) { TopicMessageStore store = adapter.createTopicMessageStore((ActiveMQTopic) destination); for (SubscriptionInfo sub : store.getAllSubscriptions()) { if (clientId == sub.getClientId() || clientId.equals(sub.getClientId())) { rc.add(sub); } } } } return rc; }
/** * Searches the set of subscriptions from the given persistence adapter and returns all those * that belong to the given ClientId value. * * @param adapter * the persistence adapter instance to search within. * @param clientId * the client ID value used to filter the subscription set. * * @return a list of all subscriptions belonging to the given client. * * @throws IOException if an error occurs while listing the stored subscriptions. */ static public List<SubscriptionInfo> listSubscriptions(PersistenceAdapter adapter, String clientId) throws IOException { ArrayList<SubscriptionInfo> rc = new ArrayList<SubscriptionInfo>(); for (ActiveMQDestination destination : adapter.getDestinations()) { if (destination.isTopic()) { TopicMessageStore store = adapter.createTopicMessageStore((ActiveMQTopic) destination); for (SubscriptionInfo sub : store.getAllSubscriptions()) { if (clientId == sub.getClientId() || clientId.equals(sub.getClientId())) { rc.add(sub); } } } } return rc; }