_ackers = 0;
}
try {
for (int topoNum = 0; topoNum < _numTopologies; topoNum++) {
TopologyBuilder builder = new TopologyBuilder();
LOG.info("Adding in "+_spoutParallel+" spouts");
builder.setSpout("messageSpout",
new SOLSpout(_messageSize, _ackEnabled), _spoutParallel);
LOG.info("Adding in "+_boltParallel+" bolts");
builder.setBolt("messageBolt1", new SOLBolt(), _boltParallel)
.shuffleGrouping("messageSpout");
for (int levelNum = 2; levelNum <= _numLevels; levelNum++) {
LOG.info("Adding in "+_boltParallel+" bolts at level "+levelNum);
builder.setBolt("messageBolt"+levelNum, new SOLBolt(), _boltParallel)
.shuffleGrouping("messageBolt"+(levelNum - 1));
}
Config conf = new Config();
conf.setDebug(_debug);
conf.setNumWorkers(_numWorkers);
conf.setNumAckers(_ackers);
if (_maxSpoutPending > 0) {
conf.setMaxSpoutPending(_maxSpoutPending);
}
StormSubmitter.submitTopology(_name+"_"+topoNum, conf, builder.createTopology());
}
metrics(client, _messageSize, _pollFreqSec, _testRunTimeSec);
} finally {
//Kill it right now!!!
KillOptions killOpts = new KillOptions();