public interface OpenMBeanInfo
介绍了一个开放的MBean:开放MBean是公认的getMBeanInfo()
如果方法返回一个类实现了OpenMBeanInfo
接口实例等,通常OpenMBeanInfoSupport
。
这个接口声明相同的方法,MBeanInfo
类。实现此接口的类(通常OpenMBeanInfoSupport
)应延长MBeanInfo
。
的getAttributes()
的实现类,getOperations()
和getConstructors()
方法应在运行时的类的一个实例MBeanAttributeInfo
数组返回,MBeanOperationInfo
或MBeanConstructorInfo
分别实施OpenMBeanAttributeInfo
,分别OpenMBeanOperationInfo
或OpenMBeanConstructorInfo
接口。
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
比较指定的
obj参数与本
OpenMBeanInfo 实例为平等。
|
MBeanAttributeInfo[] |
getAttributes()
返回
OpenMBeanAttributeInfo实例描述这个
OpenMBeanInfo实例描述了每个属性的数组开MBean。
|
String |
getClassName()
返回完全限定java类名的开放MBean实例介绍这
OpenMBeanInfo。
|
MBeanConstructorInfo[] |
getConstructors()
返回
OpenMBeanConstructorInfo实例描述这个
OpenMBeanInfo实例描述了开放的MBean每一个数组。
|
String |
getDescription()
返回一个人开MBean的实例,这
OpenMBeanInfo类型可读的描述。
|
MBeanNotificationInfo[] |
getNotifications()
返回
MBeanNotificationInfo实例描述每个通知通过
OpenMBeanInfo实例描述了开放MBean发射阵列。
|
MBeanOperationInfo[] |
getOperations()
返回
OpenMBeanOperationInfo实例描述这个
OpenMBeanInfo实例描述了每个操作数组开MBean。
|
int |
hashCode()
返回此实例的哈希代码值
OpenMBeanInfo 。
|
String |
toString()
返回该
OpenMBeanInfo 实例的字符串表示形式。
|
String getClassName()
String getDescription()
MBeanAttributeInfo[] getAttributes()
OpenMBeanAttributeInfoSupport
)。
MBeanOperationInfo[] getOperations()
OpenMBeanOperationInfoSupport
)。
MBeanConstructorInfo[] getConstructors()
OpenMBeanConstructorInfoSupport
)。
MBeanNotificationInfo[] getNotifications()
boolean equals(Object obj)
OpenMBeanInfo
实例为平等。
返回true当且仅当所有陈述是真实的:
OpenMBeanInfo
接口,OpenMBeanInfo
接口的不同实现。
equals
方法重写,继承类
Object
obj
要比较这
OpenMBeanInfo
平等的对象实例;
true
指定对象是否等于这
OpenMBeanInfo
实例。
Object.hashCode()
,
HashMap
int hashCode()
OpenMBeanInfo
。
一个OpenMBeanInfo
实例的哈希代码是用的比较信息equals
所有元素的散列码的总和(即:它的类的名称,其信息属性,构造器,操作和通知,在每一个阵列的hashCode是通过调用new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode()计算)。
这确保 t1.equals(t2)
意味着 t1.hashCode()==t2.hashCode()
任何两OpenMBeanInfo
实例t1
和t2
,的方法Object.hashCode()
一般合同要求。
hashCode
方法重写,继承类
Object
OpenMBeanInfo
实例的哈希代码值
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.