Examples of TopicNode


Examples of org.wso2.carbon.event.core.topic.TopicNode

            if (!userRegistry.resourceExists(topicStoragePath)) {
                userRegistry.put(topicStoragePath,
                                 userRegistry.newCollection());
            }
            Resource root = userRegistry.get(this.topicStoragePath);
            TopicNode rootTopic = new TopicNode("/", "/");
            buildTopicTree(rootTopic, (Collection) root, userRegistry);
            return rootTopic;
        } catch (RegistryException e) {
            throw new EventBrokerException(e.getMessage(), e);
        }
View Full Code Here

Examples of org.wso2.carbon.event.core.topic.TopicNode

                        if (!nodeName.equals(EventBrokerConstants.EB_CONF_WS_SUBSCRIPTION_COLLECTION_NAME) &&
                            !nodeName.equals(EventBrokerConstants.EB_CONF_JMS_SUBSCRIPTION_COLLECTION_NAME)) {
                            childTopic =
                                    childTopic.substring(childTopic.indexOf(this.topicStoragePath)
                                                         + this.topicStoragePath.length() + 1);
                            TopicNode childNode = new TopicNode(nodeName, childTopic);
                            nodes.add(childNode);
                            buildTopicTree(childNode, (Collection) childResource, userRegistry);
                        }
                    }
                }
View Full Code Here

Examples of org.wso2.event.TopicNode

   
    public TopicNode getTopicTree() throws EventException {
        try {
            String topicIndexPath = getSubscriptionStoragePath();
            Resource root = registry.get(topicIndexPath);
            TopicNode rootTopic = new TopicNode(new Topic("/", false));
            buildTopicTree(rootTopic, (Collection)root);
            return rootTopic;
        } catch (RegistryException e) {
            throw new EventException(e.getMessage(),e);
        }
View Full Code Here

Examples of org.wso2.event.TopicNode

                            c = c.substring(0,c.length()-2);
                        }
                        String nodeName = c.substring(c.lastIndexOf("/")+1);
                        if(!nodeName.equals("system.subscriptions")){
                            String topicName = EventBrokerUtils.subsctractPath(c,getSubscriptionStoragePath());
                            TopicNode childNode = new TopicNode(new Topic(nodeName,
                                    EventBrokerUtils.isSecureTopic(topicName)));
                            nodes.add(childNode);
                            buildTopicTree(childNode,(Collection)childResource);
                        }
                    }           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.