类 ManagedAttribute
- java.lang.Object
- org.springframework.jmx.export.metadata.AbstractJmxAttribute
- org.springframework.jmx.export.metadata.ManagedAttribute
public class ManagedAttribute extends AbstractJmxAttribute
Metadata that indicates to expose a given bean property as JMX attribute. Only valid when used on a JavaBean getter or setter.- 从以下版本开始:
- 1.2
- 作者:
- Rob Harrop
- 另请参阅:
MetadataMBeanInfoAssembler,MBeanExporter
字段概要
字段 修饰符和类型 字段 说明 static ManagedAttributeEMPTYEmpty attributes.
构造器概要
构造器 构造器 说明 ManagedAttribute()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectgetDefaultValue()Return the default value of this attribute.intgetPersistPeriod()StringgetPersistPolicy()voidsetDefaultValue(Object defaultValue)Set the default value of this attribute.voidsetPersistPeriod(int persistPeriod)voidsetPersistPolicy(String persistPolicy)从类继承的方法 org.springframework.jmx.export.metadata.AbstractJmxAttribute
getCurrencyTimeLimit, getDescription, setCurrencyTimeLimit, setDescription
字段详细资料
EMPTY
public static final ManagedAttribute EMPTY
Empty attributes.
构造器详细资料
ManagedAttribute
public ManagedAttribute()
方法详细资料
setDefaultValue
public void setDefaultValue(@Nullable Object defaultValue)
Set the default value of this attribute.
getDefaultValue
@Nullable public Object getDefaultValue()
Return the default value of this attribute.
setPersistPolicy
public void setPersistPolicy(@Nullable String persistPolicy)
getPersistPolicy
@Nullable public String getPersistPolicy()
setPersistPeriod
public void setPersistPeriod(int persistPeriod)
getPersistPeriod
public int getPersistPeriod()