public class MonitoredMBeanAttributeFactory<T> extends Object implements org.springframework.beans.factory.FactoryBean<Monitorable<T>>
Support is provided for monitoring simple attributes and also the data items of attributes that
are of type CompositeData.
| Modifier and Type | Field and Description |
|---|---|
static int |
DO_NOT_UPDATE_VALUE
May be passed as the update interval to indicate that no updates are required.
|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
MonitoredMBeanAttributeFactory(String name,
String description,
String mBeanName,
String attributeName) |
MonitoredMBeanAttributeFactory(String name,
String description,
String mBeanName,
String attributeName,
String compositeDataItem) |
MonitoredMBeanAttributeFactory(String name,
String description,
String mBeanName,
String attributeName,
String compositeDataItem,
MBeanServerConnection server) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
getAttributeValue() |
Monitorable<T> |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setMonitorableRegistry(MonitorableRegistry registry) |
void |
setUnit(javax.measure.Unit<?> unit) |
void |
setUpdateInterval(int updateInterval) |
void |
setValueSemantics(ValueSemantics semantics) |
public static final org.slf4j.Logger LOG
public static final int DO_NOT_UPDATE_VALUE
public MonitoredMBeanAttributeFactory(String name, String description, String mBeanName, String attributeName)
public MonitoredMBeanAttributeFactory(String name, String description, String mBeanName, String attributeName, String compositeDataItem)
public void setMonitorableRegistry(MonitorableRegistry registry)
public void setUpdateInterval(int updateInterval)
public void setValueSemantics(ValueSemantics semantics)
public void setUnit(javax.measure.Unit<?> unit)
public Monitorable<T> getObject() throws InstanceNotFoundException, IntrospectionException, ReflectionException, AttributeNotFoundException, MBeanException, IOException
getObject in interface org.springframework.beans.factory.FactoryBean<Monitorable<T>>InstanceNotFoundExceptionIntrospectionExceptionReflectionExceptionAttributeNotFoundExceptionMBeanExceptionIOExceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<Monitorable<T>>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<Monitorable<T>>protected T getAttributeValue()
Copyright © 2009–2021 Performance Co-Pilot. All rights reserved.