| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
javax.management
类 AttributeValueExp
java.lang.Object javax.management.AttributeValueExp
- 所有已实现的接口:
- Serializable, ValueExp
表示用作关系约束参数的属性。可在需要 ValueExp
的任何地方使用 AttributeValueExp
。
- 从以下版本开始:
- 1.5
- 另请参见:
- 序列化表格
构造方法摘要 | |
---|---|
AttributeValueExp() 已过时。 在查询中不能使用此构造方法所创建的实例。 | |
AttributeValueExp(String attr) 创建一个表示指定对象属性 attr 的新 AttributeValueExp 。 |
方法摘要 | |
---|---|
ValueExp | apply(ObjectName name) 在 MBean 上应用 AttributeValueExp 。 |
protected Object | getAttribute(ObjectName name) 返回指定的 MBean 中给定属性的值。 |
String | getAttributeName() 返回该属性名称的字符串表示形式。 |
void | setMBeanServer(MBeanServer s) 设置要在其上执行查询的 MBean 服务器。 |
String | toString() 返回表示其值的字符串。 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
AttributeValueExp
@Deprecated public AttributeValueExp()
- 已过时。 在查询中不能使用此构造方法所创建的实例。
- 具有 null 属性的
AttributeValueExp
。
AttributeValueExp
public AttributeValueExp(String attr)
- 创建一个表示指定对象属性 attr 的新
AttributeValueExp
。- 参数:
attr
- 属性名称,该属性的值是此ValueExp
的值。
方法详细信息 |
---|
getAttributeName
public String getAttributeName()
- 返回该属性名称的字符串表示形式。
- 返回:
- 属性名称。
apply
public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
- 在 MBean 上应用
AttributeValueExp
。 - 参数:
name
- MBean 的名称,将在该 MBean 上应用AttributeValueExp
。- 返回:
ValueExp
。- 抛出:
BadAttributeValueExpException
InvalidApplicationException
BadStringOperationException
BadBinaryOpValueExpException
toString
public String toString()
setMBeanServer
public void setMBeanServer(MBeanServer s)
- 设置要在其上执行查询的 MBean 服务器。
- 指定者:
- 接口
ValueExp
中的setMBeanServer
- 参数:
s
- 要在其上执行查询的 MBean 服务器。
getAttribute
protected Object getAttribute(ObjectName name)
- 返回指定的 MBean 中给定属性的值。如果试图访问属性时生成异常,则返回 null。
- 参数:
name
- 要返回其属性的 MBean 名称。- 返回:
- 属性的值,如果无法获得,则返回 null。