public class PerformanceStatistics extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.gemstone.gemfire.Statistics |
statistics
The statistics instance.
|
static int |
THREAD_SCOPE
Used to specify that an instance will be used by a single thread.
|
static int |
VM_SCOPE
Used to specify that an instance will be used by all threads in a VM.
|
| Constructor and Description |
|---|
PerformanceStatistics(Class cls,
com.gemstone.gemfire.StatisticsType type,
int scope,
String instanceName,
String trimspecName)
Creates an instance with the specified type, scope, name, and trim
specification name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the statistics instance.
|
static com.gemstone.gemfire.StatisticsFactory |
factory()
Returns the factory used to create statistics descriptors and types.
|
static PerformanceStatistics |
getInstance(Class cls,
int scope)
Gets the statistics instance with the specified class, an autogenerated
display name based on the specified scope, associated with the default
trim specification.
|
static PerformanceStatistics |
getInstance(Class cls,
int scope,
String name)
Gets the statistics instance with the specified class and an autogenerated
display name based on the specified name and scope, associated with the
default trim specification.
|
static PerformanceStatistics |
getInstance(Class cls,
int scope,
String name,
String trimspecName)
Gets the statistics instance with the specified class and an autogenerated
display name based on the specified scope and name, associated with the
specified trim specification name.
|
String |
getName()
Returns the name of this instance.
|
com.gemstone.gemfire.StatisticDescriptor |
getStatisticDescriptor(String statName)
Returns the statistic descriptor for the statistic with the given name
for this instance.
|
String |
getTrimSpecName()
Returns the logical name of the trim specification for these statistics.
|
com.gemstone.gemfire.Statistics |
statistics()
Returns the statistics instance.
|
public static final int THREAD_SCOPE
public static final int VM_SCOPE
protected com.gemstone.gemfire.Statistics statistics
public PerformanceStatistics(Class cls, com.gemstone.gemfire.StatisticsType type, int scope, String instanceName, String trimspecName)
THREAD_SCOPE and
VM_SCOPE. The named trim specification is associated with the
instance for reporting purposes (defaults to
TrimSpec.DEFAULT_TRIM_SPEC_NAME).public static com.gemstone.gemfire.StatisticsFactory factory()
public static PerformanceStatistics getInstance(Class cls, int scope)
public static PerformanceStatistics getInstance(Class cls, int scope, String name)
public static PerformanceStatistics getInstance(Class cls, int scope, String name, String trimspecName)
public void close()
public String getName()
public com.gemstone.gemfire.Statistics statistics()
public com.gemstone.gemfire.StatisticDescriptor getStatisticDescriptor(String statName)
PerfStatException - if the instance has no stat name is not found.public String getTrimSpecName()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.