public class MBeanAttributeMOInfo extends MBeanMOInfo
MBeanAttributeMOInfo describes an attribute of a MBean.| Modifier and Type | Field and Description |
|---|---|
protected TypedAttribute |
attribute |
| Constructor and Description |
|---|
MBeanAttributeMOInfo(ObjectName name,
String attributeName,
Class attributeType)
Creates an attribute description with the attributes name and type.
|
MBeanAttributeMOInfo(ObjectName name,
TypedAttribute attribute)
Creates an attribute description with a
TypedAttribute. |
| Modifier and Type | Method and Description |
|---|---|
TypedAttribute |
getAttribute() |
Object |
getAttribute(MBeanServerConnection server) |
static Object |
getAttribute(MBeanServerConnection server,
ObjectName name,
TypedAttribute attribute) |
String |
getAttributeName() |
Class |
getAttributeType() |
void |
setAttribute(MBeanServerConnection server,
Object value) |
static void |
setAttribute(MBeanServerConnection server,
ObjectName name,
TypedAttribute attribute,
Object value) |
getMBeanNames, getObjectNameprotected TypedAttribute attribute
public MBeanAttributeMOInfo(ObjectName name, String attributeName, Class attributeType)
name - the MBean's ObjectName.attributeName - the name of the attribute.attributeType - the class of the attributes value objects.public MBeanAttributeMOInfo(ObjectName name, TypedAttribute attribute)
TypedAttribute.name - the MBean's ObjectName.attribute - a TypedAttribute describing the attribute. The value is
by reference.public String getAttributeName()
public Class getAttributeType()
public TypedAttribute getAttribute()
public Object getAttribute(MBeanServerConnection server) throws ReflectionException, InstanceNotFoundException, AttributeNotFoundException, MBeanException, IOException
public static Object getAttribute(MBeanServerConnection server, ObjectName name, TypedAttribute attribute) throws ReflectionException, InstanceNotFoundException, AttributeNotFoundException, MBeanException, IOException
public void setAttribute(MBeanServerConnection server, Object value) throws ReflectionException, MBeanException, InvalidAttributeValueException, AttributeNotFoundException, InstanceNotFoundException, IOException
public static void setAttribute(MBeanServerConnection server, ObjectName name, TypedAttribute attribute, Object value) throws ReflectionException, MBeanException, InvalidAttributeValueException, AttributeNotFoundException, InstanceNotFoundException, IOException
Copyright © 2015 SNMP4J.org. All rights reserved.