|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.instrumentation.metrics.GenericMetric com.endeca.portal.instrumentation.metrics.QueryMetric
public class QueryMetric
Bean representing the aggregate performance of datastore queries, tracking the number of queries, the total time spent querying, and the longest query
Constructor Summary | |
---|---|
QueryMetric(java.lang.String queryTypeName)
Create a new QueryMetric for this query type. |
Method Summary | |
---|---|
void |
addSingleQuery(com.endeca.navigation.ENEQuery query,
com.endeca.navigation.ENEQueryResults results,
long ms)
adds a single query execution to the count and total time of queries |
void |
addSingleQuery(com.endeca.mdex.conversation.Request query,
com.endeca.mdex.conversation.Results results,
long ms)
adds a single discovery service query execution to the count and total time of queries |
java.lang.String |
getQueryTypeName()
Gets the name of the query type this object is tracking |
org.json.JSONObject |
toJSONObject()
Serializes this object into a JSON string |
Methods inherited from class com.endeca.portal.instrumentation.metrics.GenericMetric |
---|
addSingleExecution, getAverageExecutionTime, getMaxTime, getTotalCount, getTotalTime |
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 |
---|
addSingleExecution, getAverageExecutionTime, getMaxTime, getTotalCount, getTotalTime |
Constructor Detail |
---|
public QueryMetric(java.lang.String queryTypeName)
queryTypeName
- Method Detail |
---|
public void addSingleQuery(com.endeca.navigation.ENEQuery query, com.endeca.navigation.ENEQueryResults results, long ms)
query
- the query that executedresults
- the results of the queryms
- the amount of time to addpublic void addSingleQuery(com.endeca.mdex.conversation.Request query, com.endeca.mdex.conversation.Results results, long ms)
query
- the query that executedresults
- the results of the queryms
- the amount of time to addpublic org.json.JSONObject toJSONObject() throws org.json.JSONException
toJSONObject
in interface Metric
org.json.JSONException
public java.lang.String getQueryTypeName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |