public class PerfStats extends PerformanceStatistics
statistics, THREAD_SCOPE, VM_SCOPE| Constructor and Description |
|---|
PerfStats(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 |
endOperation(long start) |
static PerfStats |
getInstance() |
static PerfStats |
getInstance(java.lang.String name) |
static PerfStats |
getInstance(java.lang.String name,
java.lang.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 PerfStats(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()
PerfStatspublic static PerfStats getInstance()
public static PerfStats getInstance(java.lang.String name)
public static PerfStats getInstance(java.lang.String name, java.lang.String trimspecName)
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.