Examples of ManagedMetric


Examples of org.springframework.jmx.export.metadata.ManagedMetric

    org.springframework.jmx.export.annotation.ManagedMetric ann =
        AnnotationUtils.findAnnotation(method, org.springframework.jmx.export.annotation.ManagedMetric.class);
    if (ann == null) {
      return null;
    }
    ManagedMetric managedMetric = new ManagedMetric();
    AnnotationBeanUtils.copyPropertiesToBean(ann, managedMetric);
    return managedMetric;
  }
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    }
    else if (setter != null && StringUtils.hasText(setter.getDescription())) {
      return setter.getDescription();
    }

    ManagedMetric metric = (readMethod != null ? this.attributeSource.getManagedMetric(readMethod) : null);
    if (metric != null && StringUtils.hasText(metric.getDescription())) {
      return metric.getDescription();
    }

    return propertyDescriptor.getDisplayName();
  }
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    if (pd != null) {
      ManagedAttribute ma = this.attributeSource.getManagedAttribute(method);
      if (ma != null && StringUtils.hasText(ma.getDescription())) {
        return ma.getDescription();
      }
      ManagedMetric metric = this.attributeSource.getManagedMetric(method);
      if (metric != null && StringUtils.hasText(metric.getDescription())) {
        return metric.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    }
    else if (setter != null && StringUtils.hasText(setter.getDescription())) {
      return setter.getDescription();
    }

    ManagedMetric metric = (readMethod != null ? this.attributeSource.getManagedMetric(readMethod) : null);
    if (metric != null && StringUtils.hasText(metric.getDescription())) {
      return metric.getDescription();
    }

    return propertyDescriptor.getDisplayName();
  }
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    if (pd != null) {
      ManagedAttribute ma = this.attributeSource.getManagedAttribute(method);
      if (ma != null && StringUtils.hasText(ma.getDescription())) {
        return ma.getDescription();
      }
      ManagedMetric metric = this.attributeSource.getManagedMetric(method);
      if (metric != null && StringUtils.hasText(metric.getDescription())) {
        return metric.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    org.springframework.jmx.export.annotation.ManagedMetric ann =
        AnnotationUtils.findAnnotation(method, org.springframework.jmx.export.annotation.ManagedMetric.class);
    if (ann == null) {
      return null;
    }
    ManagedMetric managedMetric = new ManagedMetric();
    AnnotationBeanUtils.copyPropertiesToBean(ann, managedMetric);
    return managedMetric;
  }
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    }
    else if (setter != null && StringUtils.hasText(setter.getDescription())) {
      return setter.getDescription();
    }

    ManagedMetric metric = (readMethod != null) ? this.attributeSource.getManagedMetric(readMethod) : null;
    if(metric != null && StringUtils.hasText(metric.getDescription())) {
      return metric.getDescription();
    }

    return propertyDescriptor.getDisplayName();
  }
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    if (pd != null) {
      ManagedAttribute ma = this.attributeSource.getManagedAttribute(method);
      if (ma != null && StringUtils.hasText(ma.getDescription())) {
        return ma.getDescription();
      }
      ManagedMetric metric = this.attributeSource.getManagedMetric(method);
      if (metric != null && StringUtils.hasText(metric.getDescription())) {
        return metric.getDescription();
      }
      return method.getName();
    }
    else {
      ManagedOperation mo = this.attributeSource.getManagedOperation(method);
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    org.springframework.jmx.export.annotation.ManagedMetric ann =
        AnnotationUtils.findAnnotation(method, org.springframework.jmx.export.annotation.ManagedMetric.class);
    if (ann == null) {
      return null;
    }
    ManagedMetric managedMetric = new ManagedMetric();
    AnnotationBeanUtils.copyPropertiesToBean(ann, managedMetric);
    return managedMetric;
  }
View Full Code Here

Examples of org.springframework.jmx.export.metadata.ManagedMetric

    }
    else if (setter != null && StringUtils.hasText(setter.getDescription())) {
      return setter.getDescription();
    }

    ManagedMetric metric = (readMethod != null) ? this.attributeSource.getManagedMetric(readMethod) : null;
    if(metric != null && StringUtils.hasText(metric.getDescription())) {
      return metric.getDescription();
    }

    return propertyDescriptor.getDisplayName();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.