public class MethodMetricsFactory extends Object
Constructor and Description |
---|
MethodMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all meters/timers/...
|
static MethodMetricsContext |
createMethodGauge(org.apache.hadoop.conf.Configuration conf,
boolean appendToStackName,
String gaugeSuffix)
Get query metric gauge name.
|
MethodMetrics |
get(org.glassfish.jersey.server.model.ResourceMethod method,
org.glassfish.jersey.server.ContainerRequest containerRequest)
This is a factory method for getting a MethodMetrics instance.
|
MethodMetrics |
get(String name)
Returns MethodMetrics object corresponding to the given name.
|
Map<String,MethodMetrics> |
getMethodMetricsMap()
factory helper
|
public MethodMetricsFactory(@NonNull com.codahale.metrics.MetricRegistry metricRegistry)
public MethodMetrics get(@NonNull org.glassfish.jersey.server.model.ResourceMethod method, @NonNull org.glassfish.jersey.server.ContainerRequest containerRequest)
method
- containerRequest
- get(String)
,
getUniqueName(org.glassfish.jersey.server.model.ResourceMethod, org.glassfish.jersey.server.ContainerRequest)
public MethodMetrics get(@NonNull String name)
name
- public void clear()
public static MethodMetricsContext createMethodGauge(@NonNull org.apache.hadoop.conf.Configuration conf, boolean appendToStackName, String gaugeSuffix)
conf
- appendToStackName
- gaugeSuffix
- @Generated(value="lombok") public Map<String,MethodMetrics> getMethodMetricsMap()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.