Package org.apache.hedwig.server.topics

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


        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


    protected TopicManager instantiateTopicManager() throws IOException {
        TopicManager tm;

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

        bktb = new BookKeeperTestBase(numBookies);
        bktb.setUp();

        conf = new ServerConfiguration();
        scheduler = Executors.newScheduledThreadPool(1);
        tm = new TrivialOwnAllTopicManager(conf, scheduler);

        mm = MetadataManagerFactory.newMetadataManagerFactory(conf, bktb.getZooKeeperClient());

        bkpm = new BookkeeperPersistenceManager(bktb.bk, mm, tm, conf, scheduler);
    }
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();
        cfg = new ServerConfiguration();
        final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
        mm = MetadataManagerFactory.newMetadataManagerFactory(cfg, zk);
        sm = new MMSubscriptionManager(cfg, mm, new TrivialOwnAllTopicManager(cfg, scheduler),
                                       LocalDBPersistenceManager.instance(), null, scheduler);
        subDataCallback = new Callback<SubscriptionData>() {
            @Override
            public void operationFailed(Object ctx, final PubSubException exception) {
                scheduler.execute(new Runnable() {
View Full Code Here

    protected TopicManager instantiateTopicManager() throws IOException {
        TopicManager tm;

        if (conf.isStandalone()) {
            tm = new TrivialOwnAllTopicManager(conf, scheduler);
        } else {
            try {
                tm = new ZkTopicManager(zk, conf, scheduler);
            } catch (PubSubException e) {
                logger.error("Could not instantiate zk-topic manager", e);
View Full Code Here

TOP

Related Classes of org.apache.hedwig.server.topics.TrivialOwnAllTopicManager

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.