out.print(Exceptions.getCorruptDataExceptionString());
}
out.print("\n");
out.print("\t monitor: ");
MonitorState ms = (MonitorState)monitors.get(jt);
if (null == ms) {
out.print("<no associated monitor>");
} else {
try {
String name = ms.getMonitor().getName();
if (name.equals("")) {
name = "<unnamed>";
}
out.print(ms.getStatusString() + " \"" + name + "\"");
} catch (CorruptDataException cde) {
out.print(Exceptions.getCorruptDataExceptionString());
}
JavaObject jo = ms.getMonitor().getObject();
if (null == jo) {
// working with a raw monitor
out.print(" with ID ");
// FIXME: once Kato implements IDs, output ID
out.print("<unavailable>");