public class QueryPerfStats extends CachePerfStats
CACHECLOSE_TIME, CACHECLOSES, CACHEOPEN_TIME, CACHEOPENS, COMBINEDPUTGET_TIME, COMBINEDPUTGETS, CONNECT_TIME, CONNECTS, CREATE_EVENTS, CREATE_TIME, CREATEKEY_TIME, CREATEKEYS, CREATES, DESTROY_EVENTS, DESTROY_TIME, DESTROYS, DISCONNECT_TIME, DISCONNECTS, GATEWAY_QUEUE_DRAIN_TIME, GATEWAY_QUEUE_DRAINS, GET_TIME, GETALLS, GETCOMPARISON_TIME, GETCOMPARISONS, GETS, LATENCY_SPIKES, LOCALRECOVERY_TIME, LOCK_TIME, LOCKS, NEGATIVE_LATENCIES, NULLS, OP_TIME, OP_TIME1, OP_TIME2, OP_TIME3, OPS, PUT_TIME, PUTALLS, PUTCOMPARISON_TIME, PUTCOMPARISONS, PUTS, QUERIES, QUERY_RESULTS, QUERY_TIME, REBALANCE_TIME, REBALANCES, RECOVERIES, RECOVERY_TIME, REGISTERINTEREST_TIME, REGISTERINTERESTS, REMOTERECOVERY_TIME, UPDATE_EVENTS, UPDATE_LATENCY, UPDATE_TIME, UPDATES, USECASE12_UPDATE_TIME, USECASE12_UPDATES, VM_COUNTstatistics, 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 timeElapsed,
int results,
boolean isMainWorkload,
HistogramStats histogram) |
void |
endQuery(long timeElapsed,
int results,
boolean isMainWorkload,
HistogramStats histogram,
int queryNum) |
static QueryPerfStats |
getInstance() |
static QueryPerfStats |
getInstance(int scope) |
static QueryPerfStats |
getInstance(String name) |
static QueryPerfStats |
getInstance(String name,
String trimspecName) |
int |
getQuery(int queryNum) |
int |
getQueryResults(int queryNum) |
long |
getQueryTime(int queryNum) |
static com.gemstone.gemfire.StatisticDescriptor[] |
getStatisticDescriptors()
Returns the statistic descriptors for
QueryPerfStats |
void |
incHistogram(HistogramStats histogram,
long amount)
increase the time on the optional histogram by the supplied amount
|
void |
incQueries(boolean isMainWorkload)
increase the count on the queries
|
void |
incQueries(boolean isMainWorkload,
int queryNum)
increase the count on the queries
|
void |
incQueries(int amount,
boolean isMainWorkload)
increase the count on the queries by the supplied amount
|
void |
incQueries(int amount,
boolean isMainWorkload,
int queryNum)
increase the count on the queries by the supplied amount
|
void |
incQueryResults(int amount,
boolean isMainWorkload)
increase the count on the query results by the supplied amount
|
void |
incQueryResults(int amount,
boolean isMainWorkload,
int queryNum)
increase the count on the query results by the supplied amount
|
void |
incQueryTime(long amount,
boolean isMainWorkload)
increase the time on the queries by the supplied amount
|
void |
incQueryTime(long amount,
boolean isMainWorkload,
int queryNum)
increase the time on the queries by the supplied amount
|
long |
startQuery() |
long |
startQuery(int queryNum) |
endCacheClose, endCacheOpen, endCombinedPutGet, endCombinedPutGet, endConnect, endCreate, endCreate, endCreateKey, endDestroy, endDisconnect, endGatewayQueueDrain, endGatewayQueueDrain, endGet, endGet, endGetAll, endGetComparisons, endLock, endLock, endPut, endPut, endPutAll, endPutComparison, endRebalance, endRecovery, endRegisterInterest, endUpdate, endUpdate, endUseCase12Update, getCacheCloses, getCacheCloseTime, getCacheOpens, getCacheOpenTime, getCombinedPutGets, getCombinedPutGetTime, getConnects, getConnectTime, getCreateKeys, getCreateKeyTime, getCreates, getCreateTime, getDestroys, getDestroyTime, getDisConnects, getDisConnectTime, getGatewayQueueDrains, getGatewayQueueDrainTime, getGetComparisons, getGetComparisonTime, getGets, getGetTime, getLatencySpikes, getLocks, getLockTime, getNegativeLatencies, getNulls, getOps, getOpTime, getPutComparisons, getPutComparisonTime, getPuts, getPutTime, getQueries, getQueryResults, getQueryTime, getRebalances, getRebalanceTime, getRecoveries, getRecoveryTime, getRegisterInterests, getRegisterInterestTime, getUpdates, getUpdateTime, getUseCase12Updates, getUseCase12UpdateTime, incCacheCloses, incCacheCloses, incCacheCloseTime, incCacheOpens, incCacheOpens, incCacheOpenTime, incCombinedPutGets, incCombinedPutGets, incCombinedPutGetTime, incConnects, incConnects, incConnectTime, incCreateEvents, incCreateKeys, incCreateKeys, incCreateKeyTime, incCreates, incCreates, incCreateTime, incDestroyEvents, incDestroys, incDestroys, incDestroyTime, incDisconnects, incDisconnects, incDisconnectTime, incGatewayQueueDrains, incGatewayQueueDrains, incGatewayQueueDrainTime, incGetAlls, incGetComparisons, incGetComparisons, incGetComparisonTime, incGets, incGets, incGetTime, incLatencySpikes, incLocks, incLocks, incLockTime, incNegativeLatencies, incNulls, incNulls, incPutAlls, incPutComparisons, incPutComparisons, incPutComparisonTime, incPuts, incPuts, incPutTime, incRebalances, incRebalances, incRebalanceTime, incRecoveries, incRecoveries, incRecoveryTime, incRegisterInterests, incRegisterInterests, incRegisterInterestTime, incUpdateEvents, incUpdateLatency, incUpdates, incUpdates, incUpdateTime, incUseCase12Updates, incUseCase12Updates, incUseCase12UpdateTime, setOps, setOpTime, setOpTime1, setOpTime2, setOpTime3, startCacheClose, startCacheOpen, startCombinedPutGet, startConnect, startCreate, startCreateKey, startDestroy, startDisconnect, startGatewayQueueDrain, startGet, startGetComparisons, startLock, startPut, startPutComparisons, startRebalance, startRegisterInterest, startUpdate, startUseCase12Updateclose, factory, getInstance, getInstance, getInstance, getName, getStatisticDescriptor, getTrimSpecName, statisticspublic static com.gemstone.gemfire.StatisticDescriptor[] getStatisticDescriptors()
QueryPerfStatspublic void incHistogram(HistogramStats histogram, long amount)
incHistogram in class CachePerfStatspublic static QueryPerfStats getInstance()
public static QueryPerfStats getInstance(int scope)
public static QueryPerfStats getInstance(String name)
public static QueryPerfStats getInstance(String name, String trimspecName)
public int getQuery(int queryNum)
public int getQueryResults(int queryNum)
public long getQueryTime(int queryNum)
public void incQueries(boolean isMainWorkload)
incQueries in class CachePerfStatspublic void incQueries(int amount,
boolean isMainWorkload)
incQueries in class CachePerfStatspublic void incQueryResults(int amount,
boolean isMainWorkload)
incQueryResults in class CachePerfStatspublic void incQueryTime(long amount,
boolean isMainWorkload)
incQueryTime in class CachePerfStatspublic void incQueries(boolean isMainWorkload,
int queryNum)
public void incQueries(int amount,
boolean isMainWorkload,
int queryNum)
public void incQueryResults(int amount,
boolean isMainWorkload,
int queryNum)
public void incQueryTime(long amount,
boolean isMainWorkload,
int queryNum)
public long startQuery()
startQuery in class CachePerfStatspublic void endQuery(long timeElapsed,
int results,
boolean isMainWorkload,
HistogramStats histogram)
endQuery in class CachePerfStatsstart - the timestamp taken when the query startedpublic long startQuery(int queryNum)
public void endQuery(long timeElapsed,
int results,
boolean isMainWorkload,
HistogramStats histogram,
int queryNum)
start - the timestamp taken when the query startedCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.