Package backtype.storm.topology

Examples of backtype.storm.topology.IRichSpout


        createTweetProcessingTopology(builder, parallelismHint);
        return builder.createTopology();
    }

    private void createTweetProcessingTopology(TopologyBuilder builder, int parallelismHint) {
        IRichSpout spout;

        if (fileName != null) {
            spout = new TweetFileSpout(fileName);
        } else if (stream) {
            spout = new TwitterStreamSpout();
View Full Code Here


                                               String inputTopic,
                                               String outputTopic,
                                               IFeedItemProvider feedItemProvider,
                                               boolean kafkaOutputBoltRawMode) {
        TopologyBuilder builder = new TopologyBuilder();
        IRichSpout feedSpout =
                new ExternalFeedToKafkaAdapterSpout(
                        feedItemProvider,
                        kafkaBrokerConnectString,
                        inputTopic, null);
        EsperBolt esperBolt = createEsperBolt();
View Full Code Here

    }


    protected StormTopology createTopology() {
        TopologyBuilder builder = new TopologyBuilder();
        IRichSpout spout = new SentenceSpout(sentences);
        KafkaOutputBolt kafkaOutputBolt =
                new KafkaOutputBolt(BROKER_CONNECT_STRING, getTopicName(), null, false);

        builder.setSpout("sentenceSpout", spout);
        builder.setBolt("kafkaOutputBolt", kafkaOutputBolt, 1)
View Full Code Here

    }

    @Override
    protected StormTopology createTopology() {
        TopologyBuilder builder = new TopologyBuilder();
        IRichSpout feedSpout =
                new ExternalFeedToKafkaAdapterSpout(
                        new TestFeedItemProvider(),
                        BROKER_CONNECT_STRING,
                        getTopicName(), null);
        builder.setSpout("externalFeedSpout", feedSpout);
View Full Code Here

    }

    @Override
    protected StormTopology createTopology() {
        TopologyBuilder builder = new TopologyBuilder();
        IRichSpout feedSpout =
                new ExternalFeedToKafkaAdapterSpout(
                        new TestFeedItemProvider(),
                        BROKER_CONNECT_STRING,
                        getTopicName(), null);
        builder.setSpout("externalFeedSpout", feedSpout);
View Full Code Here

TOP

Related Classes of backtype.storm.topology.IRichSpout

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.