echo("-----------------------------------------------");
table = (TabularData)
connection.getAttribute(name, "RunningQueries");
cols = new String[] { "ID", "Type", "Key", "Terminating" };
echo(String.format("%10s %10s %30s %s", cols[0], cols[1], cols[2], cols[3]));
for (final Iterator<?> i = table.values().iterator(); i.hasNext(); ) {
final CompositeData data = (CompositeData) i.next();
echo(String.format("%15s %15s %30s %6s", data.get("id"), data.get("sourceType"), data.get("sourceKey"), data.get("terminating")));
}
} catch (final MBeanException | AttributeNotFoundException | InstanceNotFoundException | ReflectionException | IOException | MalformedObjectNameException e) {
error(e);