public class GcQueryReport extends Object
Constructor and Description |
---|
GcQueryReport() |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionTime(long millis)
Add an execution time.
|
Long |
getCumulativeTimeMillis()
Total time spent, will include any nested queries and code.
|
int |
getNumberOfExecutions()
How many times the query was executed.
|
String |
getQuery()
Query that was executed.
|
static void |
reportToFile(String fileLocation,
Map<String,GcQueryReport> queryReports)
Write out a csv report to the given file path.
|
void |
setCumulativeTime(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(String _query)
Query that was executed.
|
public static void reportToFile(String fileLocation, Map<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 String getQuery()
public void setQuery(String _query)
_query
- the query to setpublic Long getCumulativeTimeMillis()
public void setCumulativeTime(Long _cumulativeTimeMillis)
_cumulativeTimeMillis
- the cumulativeTime to setpublic int getNumberOfExecutions()
public void setNumberOfExecutions(int _numberOfExecutions)
_numberOfExecutions
- the numberOfExecutions to setCopyright © 2016 Internet2. All rights reserved.