Package org.apache.airavata.wsmg.broker

Examples of org.apache.airavata.wsmg.broker.ConsumerList


        // Important Get a Read Lock....
        readLockUnlockConsumers(true);
        try {

            // 1, Topic only
            ConsumerList topicConsumerList = consumerListmanager.getConsumerListByToken(topic);
            if (topicConsumerList != null) {// has subscription to this topic

                ArrayList<ConsumerInfo> list = topicConsumerList.getConsumerList();
                matchedConsumers.addAll(list);
            }
            // 2, wild card topic only
            ConsumerList wildcardConsumerList = consumerListmanager
                    .getConsumerListByToken(WsmgCommonConstants.WILDCARD_TOPIC);
            if (wildcardConsumerList != null) {// has wildcard subscriptions
                List<ConsumerInfo> wildCardConsumerInfoList = wildcardConsumerList.getConsumerList();
                if (wildCardConsumerInfoList != null) {
                    // System.out.println("ConsumerListSize2="+wildCardConsumerInfoList.size());
                    matchedConsumers.addAll(wildCardConsumerInfoList);
                }
            }
View Full Code Here


        Iterator<Integer> it = (Iterator<Integer>) yfilter.getMatchedQueries().iterator();
        while (it.hasNext()) {
            Integer qid = it.next();

            String xpath = yFilterIdToXPath.get(qid);
            ConsumerList consumerList = consumerListmanager.getConsumerListByToken(xpath);

            if (consumerList != null) {// has subscription to this topic
                matchingConsumerList.addAll(consumerList.getConsumerList());
            }
        }
        yfilter.clear();
        return matchingConsumerList;
    }
View Full Code Here

        readLockUnlockConsumers(true);

        try {

            ConsumerList topicConsumerList = consumerListmanager.getConsumerListByToken(topic);
            ConsumerList wildcardConsumerList = consumerListmanager
                    .getConsumerListByToken(WsmgCommonConstants.WILDCARD_TOPIC);
            if (topicConsumerList != null) {// has subscription to this topic

                ArrayList<ConsumerInfo> list = topicConsumerList.getConsumerList();

                matchedConsumers.addAll(list);
            }
            if (wildcardConsumerList != null) {// has wildcard subscriptions
                List<ConsumerInfo> wildCardConsumerInfoList = wildcardConsumerList.getConsumerList();
                if (wildCardConsumerInfoList != null) {
                    matchedConsumers.addAll(wildCardConsumerInfoList);
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.airavata.wsmg.broker.ConsumerList

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.