Package org.apache.storm.perf.utils
Class Helper
java.lang.Object
org.apache.storm.perf.utils.Helper
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollectMetricsAndKill(String topologyName, Integer pollInterval, int duration) static intstatic Stringstatic voidkill(Nimbus.Iface client, String topoName) static voidrunOnClusterAndPrintMetrics(int durationSec, String topoName, Map<String, Object> topoConf, StormTopology topology) static voidsetupShutdownHook(String topoName) Kill topo on Ctrl-C. 
- 
Constructor Details
- 
Helper
public Helper() 
 - 
 - 
Method Details
- 
kill
- Throws:
 Exception
 - 
getInt
 - 
getStr
 - 
collectMetricsAndKill
public static void collectMetricsAndKill(String topologyName, Integer pollInterval, int duration) throws Exception - Throws:
 Exception
 - 
setupShutdownHook
Kill topo on Ctrl-C. - 
runOnClusterAndPrintMetrics
public static void runOnClusterAndPrintMetrics(int durationSec, String topoName, Map<String, Object> topoConf, StormTopology topology) throws Exception- Throws:
 Exception
 
 -