/**
*
* @return
* @throws ControllerOperationException
*/
public Hashtable getSystemProperties() throws ControllerOperationException {
try {
Hashtable table = new Hashtable();
TabularDataSupport tds = (TabularDataSupport) con.getAttribute(
new ObjectName(ManagementFactory.RUNTIME_MXBEAN_NAME),
"SystemProperties");
for (Iterator it = tds.values().iterator(); it.hasNext(); ) {
CompositeDataSupport cds = (CompositeDataSupport) it.next();
Collection col = (Collection) cds.values();
for (Iterator iter = col.iterator(); iter.hasNext(); ) {
table.put(iter.next(), iter.next());
}
}
return table;
} catch(Exception e) {
ControllerOperationException coe = new ControllerOperationException(
e.getMessage());
coe.initCause(e);
throw coe;
}
}
VMMonitor.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录