|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.jdbc.GcQueryReport
public class GcQueryReport
Structure to encapsulate data about a query being executed.
Constructor Summary | |
---|---|
GcQueryReport()
|
Method Summary | |
---|---|
void |
addExecutionTime(long millis)
Add an execution time. |
java.lang.Long |
getCumulativeTimeMillis()
Total time spent, will include any nested queries and code. |
int |
getNumberOfExecutions()
How many times the query was executed. |
java.lang.String |
getQuery()
Query that was executed. |
static void |
reportToFile(java.lang.String fileLocation,
java.util.Map<java.lang.String,GcQueryReport> queryReports)
Write out a csv report to the given file path. |
void |
setCumulativeTime(java.lang.Long _cumulativeTimeMillis)
Total time spent, will include any nested queries and code. |
void |
setNumberOfExecutions(int _numberOfExecutions)
How many times the query was executed. |
void |
setQuery(java.lang.String _query)
Query that was executed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GcQueryReport()
Method Detail |
---|
public static void reportToFile(java.lang.String fileLocation, java.util.Map<java.lang.String,GcQueryReport> queryReports)
fileLocation
- is the loaction of the file to write.queryReports
- is the map of reports.public void addExecutionTime(long millis)
millis
- is the millis to add.public java.lang.String getQuery()
public void setQuery(java.lang.String _query)
_query
- the query to setpublic java.lang.Long getCumulativeTimeMillis()
public void setCumulativeTime(java.lang.Long _cumulativeTimeMillis)
_cumulativeTimeMillis
- the cumulativeTime to setpublic int getNumberOfExecutions()
public void setNumberOfExecutions(int _numberOfExecutions)
_numberOfExecutions
- the numberOfExecutions to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |