use of com.hazelcast.internal.management.operation.ThreadDumpOperation in project hazelcast by hazelcast.
the class ThreadDumpRequest method writeResponse.
@Override
public void writeResponse(ManagementCenterService mcs, JsonObject root) {
final JsonObject result = new JsonObject();
String threadDump = (String) mcs.callOnThis(new ThreadDumpOperation(dumpDeadlocks));
if (threadDump != null) {
result.add("hasDump", true);
result.add("dump", threadDump);
} else {
result.add("hasDump", false);
}
root.add("result", result);
}
Aggregations