public class QueryPerfStats extends PerformanceStatistics
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
QUERIES |
protected static java.lang.String |
QUERY_TIME |
statistics, THREAD_SCOPE, VM_SCOPE| Constructor and Description |
|---|
QueryPerfStats(java.lang.Class cls,
com.gemstone.gemfire.StatisticsType type,
int scope,
java.lang.String instanceName,
java.lang.String trimspecName) |
| Modifier and Type | Method and Description |
|---|---|
void |
endQuery(long start) |
static QueryPerfStats |
getInstance() |
static QueryPerfStats |
getInstance(java.lang.String name) |
static QueryPerfStats |
getInstance(java.lang.String name,
java.lang.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 java.lang.String QUERIES
protected static final java.lang.String QUERY_TIME
public QueryPerfStats(java.lang.Class cls,
com.gemstone.gemfire.StatisticsType type,
int scope,
java.lang.String instanceName,
java.lang.String trimspecName)
public static com.gemstone.gemfire.StatisticDescriptor[] getStatisticDescriptors()
QueryPerfStats.public static QueryPerfStats getInstance()
public static QueryPerfStats getInstance(java.lang.String name)
public static QueryPerfStats getInstance(java.lang.String name, java.lang.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.