Examples of TopicManager


Examples of org.apache.hedwig.server.topics.TopicManager

        super.setUp();

        ServerConfiguration conf = new ServerConfiguration();
        ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();

        TopicManager tm = new TrivialOwnAllTopicManager(conf, executor);
        dm = new StubDeliveryManager();
        PersistenceManager pm = LocalDBPersistenceManager.instance();
        sm = new StubSubscriptionManager(tm, pm, conf, executor);
        sh = new SubscribeHandler(tm, dm, pm, sm, conf);
        channel = new WriteRecordingChannel();
View Full Code Here

Examples of org.apache.hedwig.server.topics.TopicManager

            }
        }
    }

    protected TopicManager instantiateTopicManager() throws IOException {
        TopicManager tm;

        if (conf.isStandalone()) {
            tm = new TrivialOwnAllTopicManager(conf, scheduler);
        } else {
            try {
View Full Code Here

Examples of org.apache.hedwig.server.topics.TopicManager

        super.setUp();

        ServerConfiguration conf = new ServerConfiguration();
        ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();

        TopicManager tm = new TrivialOwnAllTopicManager(conf, executor);
        dm = new StubDeliveryManager();
        PersistenceManager pm = LocalDBPersistenceManager.instance();
        sm = new StubSubscriptionManager(tm, pm, dm, conf, executor);
        subChannelMgr = new SubscriptionChannelManager();
        sh = new SubscribeHandler(conf, tm, dm, pm, sm, subChannelMgr);
View Full Code Here

Examples of org.apache.hedwig.server.topics.TopicManager

        }
        mm = MetadataManagerFactory.newMetadataManagerFactory(conf, zk);
    }

    protected TopicManager instantiateTopicManager() throws IOException {
        TopicManager tm;

        if (conf.isStandalone()) {
            tm = new TrivialOwnAllTopicManager(conf, scheduler);
        } else {
            try {
View Full Code Here

Examples of org.apache.hedwig.server.topics.TopicManager

            }
        }
    }

    protected TopicManager instantiateTopicManager() throws IOException {
        TopicManager tm;

        if (conf.isStandalone()) {
            tm = new TrivialOwnAllTopicManager(conf, scheduler);
        } else {
            try {
View Full Code Here

Examples of org.mapache.business.topic.TopicManager

        }
        return _categoryManager;
    }
    private TopicManager getTopicManager(){
        if(_topicManager==null){
            _topicManager = new TopicManager();
        }
        return _topicManager;
    }
View Full Code Here

Examples of org.mapache.business.topic.TopicManager

        }
        return _categoryManager;
    }
    private TopicManager getTopicManager(){
        if(_topicManager==null){
            _topicManager = new TopicManager();
        }
        return _topicManager;
    }
View Full Code Here

Examples of org.mapache.business.topic.TopicManager

    public BlogManager() {
        blogDataAccess =
                configurationManager.getInstance().getDAOFactory().getBlogDAO();
        categoryManager = new CategoryManager();
        topicManager = new TopicManager();
        replyManager = new ReplyManager();
    }
View Full Code Here

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

        OMElement topicManagerElement =
                config.getFirstChildWithName(new QName(EventBrokerConstants.EB_CONF_NAMESPACE,
                        EventBrokerConstants.EB_CONF_ELE_TOPIC_MANAGER));
        TopicManagerFactory topicManagerFactory =
                (TopicManagerFactory) JavaUtil.getObject(topicManagerElement);
        TopicManager topicManager = topicManagerFactory.getTopicManager(topicManagerElement);
        carbonEventBroker.setTopicManager(topicManager);

        // setting the subscription manager
        OMElement subscriptionManager =
                config.getFirstChildWithName(new QName(EventBrokerConstants.EB_CONF_NAMESPACE,
View Full Code Here

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

    public Subscription[] getAllWSSubscriptionsForTopic(String topic, int startingIndex,
                                                        int maxSubscriptionCount)
            throws EventAdminException {
        EventBroker eventBroker = EventAdminHolder.getInstance().getEventBroker();
        try {
            TopicManager topicManager = eventBroker.getTopicManager();
            org.wso2.carbon.event.core.subscription.Subscription[] subscriptions =
                    topicManager.getSubscriptions(topic, true);

            int resultSetSize = maxSubscriptionCount;
            if ((subscriptions.length - startingIndex) < maxSubscriptionCount) {
                resultSetSize = (subscriptions.length - startingIndex);
            }
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.