Package org.apache.qpid.server.model
Class ConfiguredObjectInjectedStatistic<C extends ConfiguredObject,T extends java.lang.Number>
- java.lang.Object
-
- org.apache.qpid.server.model.ConfiguredObjectInjectedStatistic<C,T>
-
- All Implemented Interfaces:
ConfiguredObjectAttributeOrStatistic<C,T>
,ConfiguredObjectStatistic<C,T>
,InjectedAttributeOrStatistic<C,T>
,InjectedAttributeStatisticOrOperation<C>
public final class ConfiguredObjectInjectedStatistic<C extends ConfiguredObject,T extends java.lang.Number> extends java.lang.Object implements ConfiguredObjectStatistic<C,T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.qpid.server.model.InjectedAttributeStatisticOrOperation
InjectedAttributeStatisticOrOperation.TypeValidator
-
-
Constructor Summary
Constructors Constructor Description ConfiguredObjectInjectedStatistic(java.lang.String name, java.lang.reflect.Method method, java.lang.Object[] staticParams, java.lang.String description, InjectedAttributeStatisticOrOperation.TypeValidator typeValidator, StatisticUnit units, StatisticType type, java.lang.String label, java.lang.String metricName, boolean metricDisabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appliesToConfiguredObjectType(java.lang.Class<? extends ConfiguredObject<?>> type)
java.lang.String
getDescription()
java.lang.reflect.Type
getGenericType()
java.lang.String
getLabel()
java.lang.String
getMetricName()
java.lang.String
getName()
StatisticType
getStatisticType()
java.lang.Class<T>
getType()
StatisticUnit
getUnits()
T
getValue(C configuredObject)
boolean
isMetricDisabled()
boolean
isResettable()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObjectAttributeOrStatistic
getGenericType, getName, getType
-
-
-
-
Constructor Detail
-
ConfiguredObjectInjectedStatistic
public ConfiguredObjectInjectedStatistic(java.lang.String name, java.lang.reflect.Method method, java.lang.Object[] staticParams, java.lang.String description, InjectedAttributeStatisticOrOperation.TypeValidator typeValidator, StatisticUnit units, StatisticType type, java.lang.String label, java.lang.String metricName, boolean metricDisabled)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
getUnits
public StatisticUnit getUnits()
- Specified by:
getUnits
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
getStatisticType
public StatisticType getStatisticType()
- Specified by:
getStatisticType
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
getValue
public T getValue(C configuredObject)
- Specified by:
getValue
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
getMetricName
public java.lang.String getMetricName()
- Specified by:
getMetricName
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
isMetricDisabled
public boolean isMetricDisabled()
- Specified by:
isMetricDisabled
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
isResettable
public boolean isResettable()
- Specified by:
isResettable
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends java.lang.Number>
-
getName
public final java.lang.String getName()
- Specified by:
getName
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T>
-
getType
public final java.lang.Class<T> getType()
- Specified by:
getType
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T>
-
getGenericType
public final java.lang.reflect.Type getGenericType()
- Specified by:
getGenericType
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T>
-
appliesToConfiguredObjectType
public final boolean appliesToConfiguredObjectType(java.lang.Class<? extends ConfiguredObject<?>> type)
- Specified by:
appliesToConfiguredObjectType
in interfaceInjectedAttributeStatisticOrOperation<C extends ConfiguredObject>
-
-