|
|||||||||
| Home >> All >> javax >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.management
Class AttributeValueExp

java.lang.Objectjavax.management.ValueExpSupport
javax.management.AttributeValueExp
- All Implemented Interfaces:
- java.io.Serializable, ValueExp
- Direct Known Subclasses:
- ClassAttributeValueExp, QualifiedAttributeValueExp
- public class AttributeValueExp
- extends ValueExpSupport
A String that is an arguement to a query.
Revisions:
20020317 Adrian Brock:
- Make queries thread safe
20020711 Adrian Brock:
- Serialization
- Version:
- $Revision: 1.3.6.1 $
| Field Summary | |
private java.lang.String |
attr
The attribute name |
private static long |
serialVersionUID
|
| Constructor Summary | |
AttributeValueExp()
Construct an attribute value expression for the null attribute name |
|
AttributeValueExp(java.lang.String attr)
Construct an attribute value expression for the passed attribute name |
|
| Method Summary | |
ValueExp |
apply(ObjectName name)
Apply this value expression to an MBean. |
protected java.lang.Object |
getAttribute(ObjectName name)
Get the value of the attribute for a given object name |
java.lang.String |
getAttributeName()
Get the attribute name. |
(package private) MBeanServer |
getMBeanServer()
Get the MBean server |
void |
setMBeanServer(MBeanServer server)
Set the MBeanServer for this expression. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
attr
private java.lang.String attr
- The attribute name
| Constructor Detail |
AttributeValueExp
public AttributeValueExp()
- Construct an attribute value expression for the null attribute name
AttributeValueExp
public AttributeValueExp(java.lang.String attr)
- Construct an attribute value expression for the passed attribute name
| Method Detail |
getAttributeName
public java.lang.String getAttributeName()
- Get the attribute name.
apply
public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
- Description copied from interface:
ValueExp - Apply this value expression to an MBean.
- Specified by:
applyin interfaceValueExp- Overrides:
applyin classValueExpSupport
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
getAttribute
protected java.lang.Object getAttribute(ObjectName name)
- Get the value of the attribute for a given object name
setMBeanServer
public void setMBeanServer(MBeanServer server)
- Description copied from interface:
ValueExp - Set the MBeanServer for this expression. Only MBeans registered in
this server can be used in queries.
- Specified by:
setMBeanServerin interfaceValueExp
getMBeanServer
MBeanServer getMBeanServer()
- Get the MBean server
|
|||||||||
| Home >> All >> javax >> [ management overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC