public class MethodMetrics extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.codahale.metrics.Timer |
timer |
| Constructor and Description |
|---|
MethodMetrics(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get50thPercentile() |
double |
get75thPercentile() |
double |
get95thPercentile() |
double |
get98thPercentile() |
double |
get999thPercentile() |
double |
get99thPercentile() |
long |
getCount() |
double |
getFifteenMinuteRate() |
double |
getFiveMinuteRate() |
double |
getLoad()
average amount of time for a method multiplied by the number of times called
|
double |
getMax() |
double |
getMean() |
double |
getMeanRate() |
double |
getMin() |
String |
getName() |
double |
getOneMinuteRate() |
int |
getPercentage() |
double |
getStdDev() |
boolean |
isActive() |
void |
setActive(boolean active) |
void |
setPercentage(int percentage) |
static List<? extends MethodMetrics> |
sortedMetrics(Collection<? extends MethodMetrics> collection) |
String |
toString() |
void |
update(long elapsed) |
long[] |
values() |
public MethodMetrics(String name)
name - - the fully qualified method namepublic String getName()
public boolean isActive()
public void setActive(boolean active)
public long getCount()
public double getMeanRate()
public double getOneMinuteRate()
public double getFiveMinuteRate()
public double getFifteenMinuteRate()
public double getMin()
public double getMax()
public double getMean()
public double getStdDev()
public double get50thPercentile()
public double get75thPercentile()
public double get95thPercentile()
public double get98thPercentile()
public double get99thPercentile()
public double get999thPercentile()
public double getLoad()
public int getPercentage()
public void setPercentage(int percentage)
public long[] values()
public void update(long elapsed)
public static List<? extends MethodMetrics> sortedMetrics(Collection<? extends MethodMetrics> collection)
Copyright © 2011–2016 Red Hat. All rights reserved.