Package org.lilyproject.sep

Examples of org.lilyproject.sep.ZooKeeperItfAdapter


                    JavaServiceManager serviceMgr = lilyServerTestUtility.getRuntime().getJavaServiceManager();
                    indexerModel = (WriteableIndexerModel) serviceMgr.getService(WriteableIndexerModel.class);
                    break;
                case CONNECT:
                    Configuration conf = HBaseIndexerConfiguration.create();
                    indexerModel = new IndexerModelImpl(new ZooKeeperItfAdapter(getZooKeeper()), conf.get(ConfKeys.ZK_ROOT_NODE));
                    break;
                default:
                    throw new RuntimeException("Unexpected mode: " + mode);
            }
        }
View Full Code Here


            LinkIndex linkIndex = new LinkIndex(indexManager, /* TODO multiple repositories */ repositoryManager);

            LinkIndexUpdater linkIndexUpdater = new LinkIndexUpdater(repositoryManager, linkIndex);

            sepConsumer = new SepConsumer("LinkIndexUpdater", 0L, linkIndexUpdater, threads, hostName,
                    new ZooKeeperItfAdapter(zk), hbaseConf, new LilyPayloadExtractor());
            sepConsumer.start();
        }
    }
View Full Code Here

                return repository;
            }
        };


        sepModel = new SepModelImpl(new ZooKeeperItfAdapter(zk), hadoopConf);
        eventPublisherManager = new LilyEventPublisherManager(hbaseTableFactory);

        tableManager = new TableManagerImpl(repositoryName, hadoopConf, hbaseTableFactory);
        if (!tableManager.tableExists(Table.RECORD.name)) {
            tableManager.createTable(Table.RECORD.name);
View Full Code Here

    public void startSepEventSlave(String subscriptionId, EventListener eventListener) throws Exception {
        if (sepConsumer != null) {
            throw new IllegalStateException("There is already a SepEventSlave running, stop it first");
        }
        sepConsumer = new SepConsumer(subscriptionId, System.currentTimeMillis(), eventListener, 1, "localhost",
                new ZooKeeperItfAdapter(zk), hadoopConf, new LilyPayloadExtractor());
        sepConsumer.start();
    }
View Full Code Here

TOP

Related Classes of org.lilyproject.sep.ZooKeeperItfAdapter

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.