Esempio n. 1
0
 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);
   }
 }
Esempio n. 2
0
 public String usage() {
   return "usage: storm jar "
       + fullyQualifiedClassPath()
       + " -DOPTION=VALUE ..."
       + TopologyBuilder.usage();
 }
Esempio n. 3
0
 private void validate() {
   if (!builder.valid()) {
     System.out.println(usage());
     System.exit(1);
   }
 }