Package io.microsphere.management
Class MBeanAttribute
- java.lang.Object
-
- io.microsphere.management.MBeanAttribute
-
public class MBeanAttribute extends java.lang.ObjectMBeanAttributewithMBeanAttributeInfoand its' optional value- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Attribute
-
-
Constructor Summary
Constructors Constructor Description MBeanAttribute(javax.management.MBeanInfo declaringMBeanInfo, javax.management.MBeanAttributeInfo attributeInfo, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.management.MBeanAttributeInfogetAttributeInfo()javax.management.MBeanInfogetDeclaringMBeanInfo()java.lang.StringgetName()java.lang.StringgetType()java.lang.ObjectgetValue()booleanisIs()Indicates if this attribute has an "is" getter.booleanisReadable()Whether the value of the attribute can be read.booleanisWritable()Whether new values can be written to the attribute.
-
-
-
Method Detail
-
getDeclaringMBeanInfo
@Nonnull public javax.management.MBeanInfo getDeclaringMBeanInfo()
-
getName
@Nonnull public java.lang.String getName()
- Returns:
- Get the attribute name of MBean
-
getType
@Nonnull public java.lang.String getType()
- Returns:
- Get the
stringpresenting attribute type of MBeans
-
isReadable
public boolean isReadable()
Whether the value of the attribute can be read.- Returns:
- True if the attribute can be read, false otherwise.
-
isWritable
public boolean isWritable()
Whether new values can be written to the attribute.- Returns:
- True if the attribute can be written to, false otherwise.
-
isIs
public boolean isIs()
Indicates if this attribute has an "is" getter.- Returns:
- true if this attribute has an "is" getter.
-
getAttributeInfo
@Nonnull public javax.management.MBeanAttributeInfo getAttributeInfo()
- Returns:
- Get the
MBeanAttributeInfo
-
getValue
public java.lang.Object getValue()
- Returns:
- Get the attribute value of MBean, may be
null
-
-