Examples of JuggaloaderTimeBaseBolt


Examples of com.streamreduce.storm.bolts.JuggaloaderTimeBaseBolt

        JuggaloaderMessageGeneratorBolt messageGenerator = new JuggaloaderMessageGeneratorBolt();
       
        builder.setSpout("spout", new JuggaloaderDummySpout(), 1);
       
        // spout-->secondsBolt
        builder.setBolt("secondsBolt", new JuggaloaderTimeBaseBolt(0), PARALLELIZATION).fieldsGrouping("spout", fieldsGroupingToTimeBolt);
       
        // secondsBolt-->minuteBolt
        builder.setBolt("minuteBolt", new JuggaloaderTimeBaseBolt(Constants.PERIOD_MINUTE), PARALLELIZATION).fieldsGrouping("secondsBolt", fieldsGroupingToTimeBolt);
       
        // minuteBolt-->hourBolt
        builder.setBolt("hourBolt", new JuggaloaderTimeBaseBolt(Constants.PERIOD_HOUR), PARALLELIZATION).fieldsGrouping("minuteBolt", fieldsGroupingToTimeBolt);

        // hourBolt-->dayBolt
        builder.setBolt("dayBolt", new JuggaloaderTimeBaseBolt(Constants.PERIOD_DAY), PARALLELIZATION).fieldsGrouping("hourBolt", fieldsGroupingToTimeBolt);
       
        // dayBolt-->weekBolt
        builder.setBolt("weekBolt", new JuggaloaderTimeBaseBolt(Constants.PERIOD_WEEK), PARALLELIZATION).fieldsGrouping("dayBolt", fieldsGroupingToTimeBolt);
       
        // weekBolt-->monthBolt
        builder.setBolt("monthBolt", new JuggaloaderTimeBaseBolt(Constants.PERIOD_MONTH), PARALLELIZATION).fieldsGrouping("weekBolt", fieldsGroupingToTimeBolt);
       
        /*
         * Tie the time-bolts to the persistence bolt.
         *
         * secondsBolt-->persistenceBolt
 
View Full Code Here

Examples of com.streamreduce.storm.bolts.JuggaloaderTimeBaseBolt

                .shuffleGrouping("eventSpout", GroupingNameConstants.INVENTORY_ITEM_GROUPING_NAME);
        builder.setBolt("userMetricsBolt", new UserMetricsBolt())
                .shuffleGrouping("eventSpout", GroupingNameConstants.USER_GROUPING_NAME);
        builder.setBolt("messageMetricsBolt", new SobaMessageMetricsBolt())
               .shuffleGrouping("eventSpout", GroupingNameConstants.MESSAGE_GROUPING_NAME);
        builder.setBolt("second", new JuggaloaderTimeBaseBolt(0))
                .fieldsGrouping("accountMetricsBolt", new Fields("metricAccount", "metricName"))
                .fieldsGrouping("connectionMetricsBolt", new Fields("metricAccount", "metricName"))
                .fieldsGrouping("inventoryItemMetricsBolt", new Fields("metricAccount", "metricName"))
                .fieldsGrouping("userMetricsBolt", new Fields("metricAccount", "metricName"))
                .fieldsGrouping("messageMetricsBolt", new Fields("metricAccount", "metricName"))
                .fieldsGrouping("commandSpout", new Fields("metricAccount", "metricName"));
        builder.setBolt("minute", new JuggaloaderTimeBaseBolt(Constants.PERIOD_MINUTE))
                .fieldsGrouping("second", new Fields("metricAccount", "metricName"));
        builder.setBolt("hour", new JuggaloaderTimeBaseBolt(Constants.PERIOD_HOUR))
                .fieldsGrouping("minute", new Fields("metricAccount", "metricName"));
        builder.setBolt("day", new JuggaloaderTimeBaseBolt(Constants.PERIOD_DAY))
                .fieldsGrouping("hour", new Fields("metricAccount", "metricName"));
        builder.setBolt("week", new JuggaloaderTimeBaseBolt(Constants.PERIOD_WEEK))
                .fieldsGrouping("day", new Fields("metricAccount", "metricName"));
        builder.setBolt("month", new JuggaloaderTimeBaseBolt(Constants.PERIOD_MONTH))
                .fieldsGrouping("week", new Fields("metricAccount", "metricName"));
        builder.setBolt("persistence", new PersistMetricsBolt())
                .shuffleGrouping("minute")
                .shuffleGrouping("hour")
                .shuffleGrouping("day")
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.