Package org.apache.qpid.server.model
Class ConfiguredObjectInjectedStatistic<C extends ConfiguredObject,T extends 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 Number> extends 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(String name, Method method, Object[] staticParams, String description, InjectedAttributeStatisticOrOperation.TypeValidator typeValidator, StatisticUnit units, StatisticType type, String label, String metricName, boolean metricDisabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
appliesToConfiguredObjectType(Class<? extends ConfiguredObject<?>> type)
String
getDescription()
Type
getGenericType()
String
getLabel()
String
getMetricName()
String
getName()
StatisticType
getStatisticType()
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(String name, Method method, Object[] staticParams, String description, InjectedAttributeStatisticOrOperation.TypeValidator typeValidator, StatisticUnit units, StatisticType type, String label, String metricName, boolean metricDisabled)
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
getUnits
public StatisticUnit getUnits()
- Specified by:
getUnits
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
getStatisticType
public StatisticType getStatisticType()
- Specified by:
getStatisticType
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
getValue
public T getValue(C configuredObject)
- Specified by:
getValue
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T extends Number>
-
getMetricName
public String getMetricName()
- Specified by:
getMetricName
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
isMetricDisabled
public boolean isMetricDisabled()
- Specified by:
isMetricDisabled
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
isResettable
public boolean isResettable()
- Specified by:
isResettable
in interfaceConfiguredObjectStatistic<C extends ConfiguredObject,T extends Number>
-
getName
public final String getName()
- Specified by:
getName
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T>
-
getType
public final Class<T> getType()
- Specified by:
getType
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T>
-
getGenericType
public final Type getGenericType()
- Specified by:
getGenericType
in interfaceConfiguredObjectAttributeOrStatistic<C extends ConfiguredObject,T>
-
appliesToConfiguredObjectType
public final boolean appliesToConfiguredObjectType(Class<? extends ConfiguredObject<?>> type)
- Specified by:
appliesToConfiguredObjectType
in interfaceInjectedAttributeStatisticOrOperation<C extends ConfiguredObject>
-
-