MetricsDynamicMBeanBase.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:hadoop-oss 作者:
@Override
public AttributeList getAttributes(String[] attributeNames) {
  if (attributeNames == null || attributeNames.length == 0) 
    throw new IllegalArgumentException();

  updateMbeanInfoIfMetricsListChanged();

  AttributeList result = new AttributeList(attributeNames.length);
  for (String iAttributeName : attributeNames) {
    try {
      Object value = getAttribute(iAttributeName);
      result.add(new Attribute(iAttributeName, value));
    } catch (Exception e) {
      continue;
    } 
  }
  return result;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号