Hi,

   It should be possible to use a Java Enum instead of the string in this
code to prevent it from compiling if the type-safety is violated. So if "X"
doesn't exist it shouldn't fail during runtime.

That should be possible. Right ?

    builder.setSpout("X", tweetSpout, 1);
    builder.setBolt("Y", new Bolt(), 10).shuffleGrouping("X");

    builder.setBolt("Z", new Bolt1(), 15).fieldsGrouping("Y", new
Fields("word"));

Thanks,
Mohan

Reply via email to