public class Helper extends Object
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static void |
collectLocalMetricsAndKill(org.apache.storm.LocalCluster localCluster,
String topologyName,
Integer pollInterval,
Integer duration,
Map clusterConf) |
static void |
collectMetricsAndKill(String topologyName,
Integer pollInterval,
Integer duration) |
static int |
getInt(Map map,
Object key,
int def) |
static String |
getStr(Map map,
Object key) |
static void |
kill(Nimbus.Client client,
String topoName) |
static void |
killAndShutdownCluster(org.apache.storm.LocalCluster cluster,
String topoName) |
static void |
runOnClusterAndPrintMetrics(Integer durationSec,
String topoName,
Map topoConf,
StormTopology topology) |
static org.apache.storm.LocalCluster |
runOnLocalCluster(String topoName,
StormTopology topology) |
static void |
setupShutdownHook(org.apache.storm.LocalCluster cluster,
String topoName)
Kill topo and Shutdown local cluster on Ctrl-C
|
static void |
setupShutdownHook(String topoName)
Kill topo on Ctrl-C
|
public static void kill(Nimbus.Client client, String topoName) throws Exception
Exception
public static void killAndShutdownCluster(org.apache.storm.LocalCluster cluster, String topoName) throws Exception
Exception
public static org.apache.storm.LocalCluster runOnLocalCluster(String topoName, StormTopology topology)
public static void collectMetricsAndKill(String topologyName, Integer pollInterval, Integer duration) throws Exception
Exception
public static void collectLocalMetricsAndKill(org.apache.storm.LocalCluster localCluster, String topologyName, Integer pollInterval, Integer duration, Map clusterConf) throws Exception
Exception
public static void setupShutdownHook(org.apache.storm.LocalCluster cluster, String topoName)
Kill topo and Shutdown local cluster on Ctrl-C
public static void setupShutdownHook(String topoName)
Kill topo on Ctrl-C
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.