Package org.apache.storm.perf.utils
Class Helper
- java.lang.Object
-
- org.apache.storm.perf.utils.Helper
-
public class Helper extends Object
-
-
Constructor Summary
Constructors Constructor Description Helper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
collectMetricsAndKill(String topologyName, Integer pollInterval, int duration)
static int
getInt(Map map, Object key, int def)
static String
getStr(Map map, Object key)
static void
kill(Nimbus.Iface client, String topoName)
static void
runOnClusterAndPrintMetrics(int durationSec, String topoName, Map<String,Object> topoConf, StormTopology topology)
static void
setupShutdownHook(String topoName)
Kill topo on Ctrl-C.
-
-
-
Method Detail
-
kill
public static void kill(Nimbus.Iface client, String topoName) throws Exception
- Throws:
Exception
-
collectMetricsAndKill
public static void collectMetricsAndKill(String topologyName, Integer pollInterval, int duration) throws Exception
- Throws:
Exception
-
setupShutdownHook
public static void setupShutdownHook(String topoName)
Kill topo on Ctrl-C.
-
-