Examples of allGrouping()


Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

  public BoltDeclarer setSpout(String id, IBatchSpout spout, int paralel) {

    BoltDeclarer boltDeclarer = this
        .setBolt(id, (IBatchSpout) spout, paralel);
    boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
        BatchDef.COMPUTING_STREAM_ID);

    return boltDeclarer;
  }
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

    BoltDeclarer boltDeclarer = topologyBuilder.setBolt(id,
        coordinatedBolt, paralel);

    if (bolt instanceof IPrepareCommit) {
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.PREPARE_STREAM_ID);
    }

    if (bolt instanceof ICommitter) {
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.PREPARE_STREAM_ID);
    }

    if (bolt instanceof ICommitter) {
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.COMMIT_STREAM_ID);
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.REVERT_STREAM_ID);
    }
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

    }

    if (bolt instanceof ICommitter) {
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.COMMIT_STREAM_ID);
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.REVERT_STREAM_ID);
    }

    if (bolt instanceof IPostCommit) {
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.REVERT_STREAM_ID);
    }

    if (bolt instanceof IPostCommit) {
      boltDeclarer.allGrouping(BatchDef.SPOUT_TRIGGER,
          BatchDef.POST_STREAM_ID);
    }

    return boltDeclarer;
  }
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

                            c.streamName,
                            ((ITridentSpout) c.spout)),
                            batchIdsForSpouts,
                            specs),
                        c.parallelism);
                bd.allGrouping(spoutCoordinator(id), MasterBatchCoordinator.BATCH_STREAM_ID);
                bd.allGrouping(masterCoordinator(batchGroup), MasterBatchCoordinator.SUCCESS_STREAM_ID);
                if(c.spout instanceof ICommitterTridentSpout) {
                    bd.allGrouping(masterCoordinator(batchGroup), MasterBatchCoordinator.COMMIT_STREAM_ID);
                    if (commitBatchGroup.contains(batchGroup) == false) commitBatchGroup.add(batchGroup);
                }
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

                            ((ITridentSpout) c.spout)),
                            batchIdsForSpouts,
                            specs),
                        c.parallelism);
                bd.allGrouping(spoutCoordinator(id), MasterBatchCoordinator.BATCH_STREAM_ID);
                bd.allGrouping(masterCoordinator(batchGroup), MasterBatchCoordinator.SUCCESS_STREAM_ID);
                if(c.spout instanceof ICommitterTridentSpout) {
                    bd.allGrouping(masterCoordinator(batchGroup), MasterBatchCoordinator.COMMIT_STREAM_ID);
                    if (commitBatchGroup.contains(batchGroup) == false) commitBatchGroup.add(batchGroup);
                }
                for(Map m: c.componentConfs) {
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

                            specs),
                        c.parallelism);
                bd.allGrouping(spoutCoordinator(id), MasterBatchCoordinator.BATCH_STREAM_ID);
                bd.allGrouping(masterCoordinator(batchGroup), MasterBatchCoordinator.SUCCESS_STREAM_ID);
                if(c.spout instanceof ICommitterTridentSpout) {
                    bd.allGrouping(masterCoordinator(batchGroup), MasterBatchCoordinator.COMMIT_STREAM_ID);
                    if (commitBatchGroup.contains(batchGroup) == false) commitBatchGroup.add(batchGroup);
                }
                for(Map m: c.componentConfs) {
                    bd.addConfigurations(m);
                }
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

                    d.directGrouping(comp, TridentBoltExecutor.COORD_STREAM(b));
                }
            }
           
            for(String b: c.committerBatches) {
                d.allGrouping(masterCoordinator(b), MasterBatchCoordinator.COMMIT_STREAM_ID);
                if (commitBatchGroup.contains(b) == false) commitBatchGroup.add(b);
            }
        }
       
        for(String batch: batchesToCommitIds.keySet()) {
View Full Code Here

Examples of backtype.storm.topology.BoltDeclarer.allGrouping()

    IBatchSpout batchSpout = new BatchMetaSpout(metaSpoutConfig);
    int spoutParal = JStormUtils.parseInt(
        conf.get("topology.spout.parallel"), 1);
    BoltDeclarer spoutDeclarer = batchTopologyBuilder.setSpout(
        BatchMetaSpout.SPOUT_NAME, batchSpout, spoutParal);
    spoutDeclarer.allGrouping(BatchMetaRebalance.BOLT_NAME,
        BatchMetaRebalance.REBALANCE_STREAM_ID);

    int boltParallel = JStormUtils.parseInt(
        conf.get("topology.bolt.parallel"), 1);
    BoltDeclarer transformDeclarer = batchTopologyBuilder.setBolt(
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.