public class JvmMetricsSource extends Object implements MetricsSource
限定符和类型 | 方法和说明 |
---|---|
static JvmMetricsSource |
create(String processName,
String sessionId) |
static JvmMetricsSource |
create(String processName,
String sessionId,
MetricsSystem ms) |
void |
getMetrics(MetricsBuilder builder,
boolean all)
Get metrics from the source
|
public static JvmMetricsSource create(String processName, String sessionId, MetricsSystem ms)
public static JvmMetricsSource create(String processName, String sessionId)
public void getMetrics(MetricsBuilder builder, boolean all)
MetricsSource
getMetrics
在接口中 MetricsSource
builder
- to contain the resulting metrics snapshotall
- if true, return all metrics even if unchanged.Copyright © 2009 The Apache Software Foundation