use of org.ow2.proactive.resourcemanager.rmnode.ThreadDumpNotAccessibleException in project scheduling by ow2-proactive.
the class RMCore method getNodeThreadDump.
@Override
@ImmediateService
public StringWrapper getNodeThreadDump(String nodeUrl) {
checkPermissionAndGetClientIsSuccessful();
RMNode node;
try {
node = getAliveNodeOrFail(nodeUrl);
} catch (RuntimeException e) {
logger.warn("Could not get node thread dump for node " + nodeUrl + ": " + e.getMessage());
throw new ThreadDumpNotAccessibleException(nodeUrl, e.getMessage());
}
String threadDump;
try {
threadDump = node.getNode().getThreadDump();
} catch (ProActiveException e) {
logger.error("Could not get node thread dump for node " + nodeUrl, e);
throw new ThreadDumpNotAccessibleException(nodeUrl, "Failed fetching thread dump", e);
}
logger.debug("Thread dump for node " + nodeUrl + ": " + threadDump);
return new StringWrapper(threadDump);
}
use of org.ow2.proactive.resourcemanager.rmnode.ThreadDumpNotAccessibleException in project scheduling by ow2-proactive.
the class RMCore method getRMThreadDump.
@Override
@ImmediateService
public StringWrapper getRMThreadDump() {
checkPermissionAndGetClientIsSuccessful();
String threadDump;
try {
threadDump = this.nodeRM.getThreadDump();
} catch (ProActiveException e) {
logger.error("Could not get Resource Manager thread dump", e);
throw new ThreadDumpNotAccessibleException(this.getUrl(), "Failed fetching thread dump", e);
}
logger.debug("Resource Manager thread dump: " + threadDump);
return new StringWrapper(threadDump);
}
Aggregations