public class QueryPerfStats extends PerformanceStatistics
| Modifier and Type | Field and Description |
|---|---|
protected static String |
QUERIES |
protected static String |
QUERY_TIME |
statistics, THREAD_SCOPE, VM_SCOPE| Constructor and Description |
|---|
QueryPerfStats(Class cls,
com.gemstone.gemfire.StatisticsType type,
int scope,
String instanceName,
String trimspecName) |
| Modifier and Type | Method and Description |
|---|---|
void |
endQuery(long start) |
static QueryPerfStats |
getInstance() |
static QueryPerfStats |
getInstance(String name) |
static QueryPerfStats |
getInstance(String name,
String trimspecName) |
int |
getQueries() |
long |
getQUERYTime() |
static com.gemstone.gemfire.StatisticDescriptor[] |
getStatisticDescriptors()
Returns the statistic descriptors for
QueryPerfStats. |
void |
incQueries()
increase the count on the queries
|
void |
incQueries(int amount)
increase the count on the queries by the supplied amount
|
void |
incQueryTime(long amount)
increase the time on the queries by the supplied amount
|
long |
startQuery() |
close, factory, getInstance, getInstance, getInstance, getName, getStatisticDescriptor, getTrimSpecName, statisticsprotected static final String QUERIES
protected static final String QUERY_TIME
public static com.gemstone.gemfire.StatisticDescriptor[] getStatisticDescriptors()
QueryPerfStats.public static QueryPerfStats getInstance()
public static QueryPerfStats getInstance(String name)
public static QueryPerfStats getInstance(String name, String trimspecName)
public int getQueries()
public long getQUERYTime()
public void incQueries()
public void incQueries(int amount)
public void incQueryTime(long amount)
public long startQuery()
public void endQuery(long start)
start - the timestamp taken when the queries startedCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.