public final class CounterFactory<T extends ICounter>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CounterFactory<IEventOccurrenceCounter> |
EVENT_OCCURRENCE_COUNTER |
static int |
EVENT_OCCURRENCE_COUNTER_TYPE_IDX |
static CounterFactory<IEventValueCounter> |
EVENT_VALUE_COUNTER |
static int |
EVENT_VALUE_COUNTER_TYPE_IDX |
static int |
MICRO_SECOND_TIMER_EVENT_VALUE_COUNTER_TYPE_IDX |
static CounterFactory<ITimerEventValueCounter> |
MICRO_TIMER_EVENT_VALUE_COUNTER |
static CounterFactory<ITimerEventValueCounter> |
TIMER_EVENT_VALUE_COUNTER |
static int |
TIMER_EVENT_VALUE_COUNTER_TYPE_IDX |
static CounterFactory<IValueCounter> |
VALUE_COUNTER |
static int |
VALUE_COUNTER_TYPE_IDX |
Modifier and Type | Method and Description |
---|---|
static <T extends ICounter> |
createCounter(CounterFactory<T> counterTypeFactory,
java.lang.String name)
Creates a counter of a given type, with a given name.
|
static IValueCounter |
createPropertyBasedValueCounter(java.lang.String name,
java.beans.PropertyDescriptor propertyDescr,
java.lang.Object sourceObject)
Creates a property based value counter with a given name.
|
static IValueCounter |
createPropertyBasedValueCounter(java.lang.String name,
java.lang.String propertyName,
java.lang.Object sourceObject)
Creates a property based value counter with a given name.
|
public static final int VALUE_COUNTER_TYPE_IDX
public static final int EVENT_OCCURRENCE_COUNTER_TYPE_IDX
public static final int EVENT_VALUE_COUNTER_TYPE_IDX
public static final int TIMER_EVENT_VALUE_COUNTER_TYPE_IDX
public static final int MICRO_SECOND_TIMER_EVENT_VALUE_COUNTER_TYPE_IDX
public static final CounterFactory<IValueCounter> VALUE_COUNTER
public static final CounterFactory<IEventOccurrenceCounter> EVENT_OCCURRENCE_COUNTER
public static final CounterFactory<IEventValueCounter> EVENT_VALUE_COUNTER
public static final CounterFactory<ITimerEventValueCounter> TIMER_EVENT_VALUE_COUNTER
public static final CounterFactory<ITimerEventValueCounter> MICRO_TIMER_EVENT_VALUE_COUNTER
public static <T extends ICounter> T createCounter(CounterFactory<T> counterTypeFactory, java.lang.String name)
counterTypeFactory
- The factory for the required counter typename
- The name of the new counterpublic static IValueCounter createPropertyBasedValueCounter(java.lang.String name, java.beans.PropertyDescriptor propertyDescr, java.lang.Object sourceObject)
name
- The name of the new counterpropertyDescr
- The descriptor of the property supplying the counter valuesourceObject
- The source object on which to invoke the getter method. This parameter can null when the
getter method is a static method.public static IValueCounter createPropertyBasedValueCounter(java.lang.String name, java.lang.String propertyName, java.lang.Object sourceObject) throws java.beans.IntrospectionException
name
- The name of the new counterpropertyDescr
- The descriptor of the property supplying the counter valuesourceObject
- The source object on which to invoke the getter method. In case of a static property, this
should be the class.java.beans.IntrospectionException