public class JuggaloaderTopology {
public StormTopology createJuggaloaderTopology() {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("eventSpout", new EventSpout());
builder.setSpout("commandSpout", new JuggaloaderCommandSpout());
builder.setBolt("accountMetricsBolt", new AccountMetricsBolt())
.shuffleGrouping("eventSpout", GroupingNameConstants.ACCOUNT_GROUPING_NAME);
builder.setBolt("connectionMetricsBolt", new ConnectionMetricsBolt())
.shuffleGrouping("eventSpout", GroupingNameConstants.CONNECTION_GROUPING_NAME);