Package com.pinterest.secor.common

Examples of com.pinterest.secor.common.ZookeeperConnector


            if (!command.equals("delete_committed_offsets")) {
                throw new IllegalArgumentException(
                    "command has to be one of \"delete_committed_offsets\"");
            }
            SecorConfig config = SecorConfig.load();
            ZookeeperConnector zookeeperConnector = new ZookeeperConnector(config);
            String topic = commandLine.getOptionValue("topic");
            if (commandLine.hasOption("partition")) {
                int partition =
                    ((Number) commandLine.getParsedOptionValue("partition")).intValue();
                TopicPartition topicPartition = new TopicPartition(topic, partition);
                zookeeperConnector.deleteCommittedOffsetPartitionCount(topicPartition);
            } else {
                zookeeperConnector.deleteCommittedOffsetTopicCount(topic);
            }
        } catch (Throwable t) {
            LOG.error("Zookeeper client failed", t);
            System.exit(1);
        }
View Full Code Here


    public ProgressMonitor(SecorConfig config)
            throws Exception
    {
        mConfig = config;
        mZookeeperConnector = new ZookeeperConnector(mConfig);
        mKafkaClient = new KafkaClient(mConfig);
        mMessageParser = (MessageParser) ReflectionUtil.createMessageParser(
                mConfig.getMessageParserClass(), mConfig);
    }
View Full Code Here

TOP

Related Classes of com.pinterest.secor.common.ZookeeperConnector

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.