use of org.apache.storm.generated.KillOptions in project storm by apache.
the class Helper method killAndShutdownCluster.
public static void killAndShutdownCluster(LocalCluster cluster, String topoName) throws Exception {
KillOptions opts = new KillOptions();
opts.set_wait_secs(0);
cluster.killTopologyWithOpts(topoName, opts);
cluster.shutdown();
}
use of org.apache.storm.generated.KillOptions in project storm by apache.
the class StormCluster method killSilently.
public void killSilently(String topologyName) {
try {
client.killTopologyWithOpts(topologyName, new KillOptions());
log.info("Topology killed: " + topologyName);
} catch (Throwable e) {
log.warn("Couldn't kill topology: " + topologyName + " Exception: " + ExceptionUtils.getFullStackTrace(e));
}
}
use of org.apache.storm.generated.KillOptions in project metron by apache.
the class FluxTopologyComponent method killTopology.
protected void killTopology() {
KillOptions ko = new KillOptions();
ko.set_wait_secs(0);
stormCluster.killTopologyWithOpts(topologyName, ko);
try {
// Actually wait for it to die.
Thread.sleep(2000);
} catch (InterruptedException e) {
// Do nothing
}
}
use of org.apache.storm.generated.KillOptions in project storm by apache.
the class FastWordCountTopology method kill.
public static void kill(Nimbus.Iface client, String name) throws Exception {
KillOptions opts = new KillOptions();
opts.set_wait_secs(0);
client.killTopologyWithOpts(name, opts);
}
use of org.apache.storm.generated.KillOptions in project storm by apache.
the class Nimbus method killTopology.
@Override
public void killTopology(String name) throws NotAliveException, AuthorizationException, TException {
killTopologyCalls.mark();
killTopologyWithOpts(name, new KillOptions());
}
Aggregations