public class PerfStats extends PerformanceStatistics
statistics, THREAD_SCOPE, VM_SCOPE| Constructor and Description |
|---|
PerfStats(Class cls,
com.gemstone.gemfire.StatisticsType type,
int scope,
String instanceName,
String trimspecName) |
| Modifier and Type | Method and Description |
|---|---|
void |
endOperation(long start) |
static PerfStats |
getInstance() |
static PerfStats |
getInstance(String name) |
static PerfStats |
getInstance(String name,
String trimspecName) |
int |
getOperationsCompleted() |
long |
getOperationTime() |
static com.gemstone.gemfire.StatisticDescriptor[] |
getStatisticDescriptors()
Returns the statistic descriptors for
PerfStats |
void |
incOperationsCompleted()
increase the count on the operation
|
void |
incOperationsCompleted(int amount)
increase the count on the operation by the supplied amount
|
void |
incOperationTime(long amount)
increase the time on the operation by the supplied amount
|
long |
startOperation() |
close, factory, getInstance, getInstance, getInstance, getName, getStatisticDescriptor, getTrimSpecName, statisticspublic static com.gemstone.gemfire.StatisticDescriptor[] getStatisticDescriptors()
PerfStatspublic static PerfStats getInstance()
public int getOperationsCompleted()
public long getOperationTime()
public void incOperationsCompleted()
public void incOperationsCompleted(int amount)
public void incOperationTime(long amount)
public long startOperation()
public void endOperation(long start)
start - the timestamp taken when the operation startedCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.