|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.server.api.metrics.MethodMetricsFactory
public class MethodMetricsFactory
Factory for creating MethodMetrics objects on demand.
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
MethodMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public MethodMetricsFactory(@NonNull
com.codahale.metrics.MetricRegistry metricRegistry)
| Method Detail |
|---|
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||