public void submit() { try { builder.logInfo(); StormSubmitter.submitTopology(builder.topologyName(), config, builder.topology()); } catch (AlreadyAliveException e) { LOG.error("Topology " + builder.topologyName() + " is already running", e); System.exit(2); } catch (InvalidTopologyException e) { LOG.error("Topology " + builder.topologyName() + " is invalid", e); System.exit(3); } }
public String usage() { return "usage: storm jar " + fullyQualifiedClassPath() + " -DOPTION=VALUE ..." + TopologyBuilder.usage(); }
private void validate() { if (!builder.valid()) { System.out.println(usage()); System.exit(1); } }