public class JvmCpuGaugeSet extends Object implements com.codahale.metrics.MetricSet
| 限定符和类型 | 字段和说明 |
|---|---|
private static List<String> |
OPERATING_SYSTEM_BEAN_CLASS_NAMES
List of public, exported interface class names from supported JVM implementations.
|
private OperatingSystemMXBean |
operatingSystemBean |
private Class<?> |
operatingSystemBeanClass |
private Method |
processCpuUsage |
private Method |
systemCpuUsage |
| 构造器和说明 |
|---|
JvmCpuGaugeSet()
Creates a new set of gauges.
|
| 限定符和类型 | 方法和说明 |
|---|---|
private Method |
detectMethod(String name) |
private Class<?> |
getFirstClassFound(List<String> classNames) |
Map<String,com.codahale.metrics.Metric> |
getMetrics() |
private double |
invoke(Method method) |
private static final List<String> OPERATING_SYSTEM_BEAN_CLASS_NAMES
private final OperatingSystemMXBean operatingSystemBean
private final Class<?> operatingSystemBeanClass
private final Method systemCpuUsage
private final Method processCpuUsage
public JvmCpuGaugeSet()
public Map<String,com.codahale.metrics.Metric> getMetrics()
getMetrics 在接口中 com.codahale.metrics.MetricSetprivate Method detectMethod(String name)
private Class<?> getFirstClassFound(List<String> classNames)
Copyright © 2024. All rights reserved.