try {
List<String> topologys = cluster.active_storms();
for (String topologyId : topologys) {
StormMonitor monitor = null;
boolean metricPerf = true;
Assignment assignment = null;
try {
monitor = cluster.get_storm_monitor(topologyId);
if (monitor != null) metricPerf = monitor.getMetrics();
assignment = cluster.assignment_info(topologyId, null);
} catch (Exception e) {
LOG.error("Error when retrieving monitor status and assignment info "
+ "for " + topologyId, e);