javax.management
public class AttributeValueExp extends Object implements ValueExp
Since: 1.5
Constructor Summary | |
---|---|
AttributeValueExp(String attr)
Constructs a new AttributeValueExp using the
specified attribute.
|
Method Summary | |
---|---|
ValueExp | apply(ObjectName name)
Applies the AttributeValueExp to the specified
management bean by obtaining the attribute value from
the MBeanServer and using it to create a
StringValueExp.
|
protected Object | getAttribute(ObjectName name)
Returns the value of the attribute by calling the
MBeanServer method of
the server returned by getMBeanServer.
|
String | getAttributeName()
Returns the attribute name.
|
void | setMBeanServer(MBeanServer server)
Sets the MBeanServer on which the query
will be performed.
|
String | toString()
Returns the attribute name, quoted.
|
Parameters: attr the name of the attribute whose value will be used for this expression.
Parameters: name the ObjectName of the bean to obtain the value from.
Returns: a StringValueExp containing the result.
Throws: BadStringOperationException if an invalid string operation is used by the value expression. BadBinaryOpValueExpException if an invalid expression is used by the value expression. BadAttributeValueExpException if an invalid attribute is used by the value expression. InvalidApplicationException if the value expression is applied to the wrong type of bean.
null
is returned.
Parameters: name the ObjectName of the bean to obtain the value from.
Returns: a StringValueExp containing the result.
Returns: the attribute name.
Parameters: server the new server.
Returns: the quoted attribute name.