|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.portal.instrumentation.metrics.GenericMetric
public abstract class GenericMetric
abstract generic implementation of a metric to be tracked for performance reasons
| Constructor Summary | |
|---|---|
GenericMetric()
|
|
| Method Summary | |
|---|---|
void |
addSingleExecution(long ms)
adds a single component execution to the count and total time of executions |
long |
getAverageExecutionTime()
Returns the dumb average (totalExecutionTime/numExecutions) execution time for this query type. |
long |
getMaxTime()
get the maximum time spent on a single query |
long |
getTotalCount()
get the total number of times this type of query executed |
long |
getTotalTime()
get the total time spent for all queries of this type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.endeca.portal.instrumentation.metrics.Metric |
|---|
toJSONObject |
| Constructor Detail |
|---|
public GenericMetric()
| Method Detail |
|---|
public void addSingleExecution(long ms)
addSingleExecution in interface Metricms - the amount of time to addpublic long getAverageExecutionTime()
Metric
getAverageExecutionTime in interface Metricpublic long getTotalCount()
Metric
getTotalCount in interface Metricpublic long getTotalTime()
Metric
getTotalTime in interface Metricpublic long getMaxTime()
Metric
getMaxTime in interface Metric
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||