private void setYarnAndNonYarnDaemons(String host, YarnSlaveParam slave,
ProfilerJMXDump dump,
WorkerJMXInfo levelJMXInfo) throws IOException,
AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException,
IntrospectionException {
levelJMXInfo.setDataNode(dump.getAllJMXAttribute(JMXDeamons.DATA_NODE, host,
slave.getDataNodeJmxPort()));
if(isYarnEnable){
YarnWorkerJMXInfo ywji = (YarnWorkerJMXInfo) levelJMXInfo;
ywji.setNodeManager(dump.getAllJMXAttribute(JMXDeamons.NODE_MANAGER,
host, slave.getNodeManagerJmxPort()));
}else{
levelJMXInfo.setTaskTracker(dump.getAllJMXAttribute(JMXDeamons.TASK_TRACKER, host,
slave.getTaskTrackerJmxPort()));
}
}
ExecutionServlet.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:jumbune
作者:
评论列表
文章目录