public class ServiceStatsFactory extends AbstractStatsFactory<ServiceStats>
| Modifier and Type | Field and Description |
|---|---|
static AbstractStatsFactory<ServiceStats> |
DEFAULT_INSTANCE
Default instance to spare additional object creation.
|
| Constructor and Description |
|---|
ServiceStatsFactory()
Creates a new factory with default intervals.
|
ServiceStatsFactory(Interval[] configuredIntervals)
Creates a new factory with custom intervals.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceStats |
createStatsObject(java.lang.String name)
Creates a new stats object with given name.
|
getIntervalspublic static final AbstractStatsFactory<ServiceStats> DEFAULT_INSTANCE
public ServiceStatsFactory(Interval[] configuredIntervals)
configuredIntervals - Interval arraypublic ServiceStatsFactory()
public ServiceStats createStatsObject(java.lang.String name)
IOnDemandStatsFactoryname - name of the stat object, may be a constant or method name.SCopyright © 2010-2020 anotheria.net. All Rights Reserved.