/**
* Find the operation info for a method
*
* @param oname
* @param opName
* @return the operation info for the specified operation
*/
public MBeanOperationInfo getMethodInfo(ObjectName oname, String opName) {
MBeanInfo info = null;
try {
info = server.getMBeanInfo(oname);
} catch (Exception e) {
log.info("Can't find metadata " + oname);
return null;
}
MBeanOperationInfo attInfo[] = info.getOperations();
for (int i = 0; i < attInfo.length; i++) {
if (opName.equals(attInfo[i].getName())) {
return attInfo[i];
}
}
return null;
}
Registry.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:lazycat
作者:
评论列表
文章目录