|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.instrumentation.DataSourceTracker
public class DataSourceTracker
Concrete class to track all query executions, both at a global level and at a per-datasource level
Method Summary | |
---|---|
void |
addCachedDataQuery(RequestTracker requestTracker,
java.lang.String dataSourceString,
com.endeca.navigation.ENEQuery query,
com.endeca.navigation.ENEQueryResults results,
long ms)
Tracks a single query to an MDEX DataSource that was satisfied by application cache |
void |
addCachedDataQuery(RequestTracker requestTracker,
java.lang.String dataSourceString,
com.endeca.mdex.conversation.Request query,
com.endeca.mdex.conversation.Results results,
long ms)
|
void |
addDataQuery(RequestTracker requestTracker,
java.lang.String dataSourceString,
com.endeca.navigation.ENEQuery query,
com.endeca.navigation.ENEQueryResults results,
long ms)
Tracks a single uncached query to an MDEX DataSource |
void |
addDataQuery(RequestTracker requestTracker,
java.lang.String dataSourceString,
com.endeca.mdex.conversation.Request query,
com.endeca.mdex.conversation.Results results,
long ms)
|
protected java.lang.Object |
clone()
|
java.util.Set<java.lang.String> |
getDataSourceKeys()
Returns the set of all DataSource keys being tracked |
MDEXMetric |
getGlobalMetric()
Returns the metric representing all query executions, lumped together |
protected static DataSourceTracker |
getInstance()
|
MDEXMetric |
getMetric(java.lang.String key)
Returns the metric representing only the executions of a specified DataSource |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected static DataSourceTracker getInstance()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public MDEXMetric getGlobalMetric()
public MDEXMetric getMetric(java.lang.String key)
key
- the key for the DataSource, typically the DataSource description
public java.util.Set<java.lang.String> getDataSourceKeys()
public void addCachedDataQuery(RequestTracker requestTracker, java.lang.String dataSourceString, com.endeca.navigation.ENEQuery query, com.endeca.navigation.ENEQueryResults results, long ms)
DataSourceInstrumentor
addCachedDataQuery
in interface DataSourceInstrumentor
dataSourceString
- the key/description of the DataSourcequery
- The query object that executedresults
- The results of the query that executedms
- The execution time of the querypublic void addDataQuery(RequestTracker requestTracker, java.lang.String dataSourceString, com.endeca.navigation.ENEQuery query, com.endeca.navigation.ENEQueryResults results, long ms)
DataSourceInstrumentor
addDataQuery
in interface DataSourceInstrumentor
dataSourceString
- the key/description of the DataSourcequery
- The query object that executedresults
- The results of the query that executedms
- The execution time of the querypublic void addCachedDataQuery(RequestTracker requestTracker, java.lang.String dataSourceString, com.endeca.mdex.conversation.Request query, com.endeca.mdex.conversation.Results results, long ms)
public void addDataQuery(RequestTracker requestTracker, java.lang.String dataSourceString, com.endeca.mdex.conversation.Request query, com.endeca.mdex.conversation.Results results, long ms)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |