public class MBeanServerDelegate extends Object implements MBeanServerDelegateMBean, NotificationEmitter
Modifier and Type | Field and Description |
---|---|
static ObjectName |
DELEGATE_NAME
定义了mbeanserverdelegate默认对象。
|
Constructor and Description |
---|
MBeanServerDelegate()
创建一个mbeanserverdelegate对象。
|
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
将侦听器添加到这个MBean。
|
String |
getImplementationName()
返回JMX实现名称(该产品的名称)。
|
String |
getImplementationVendor()
返回JMX实现供应商(该产品的供应商)。
|
String |
getImplementationVersion()
返回JMX实现版本(这个版本)。
|
String |
getMBeanServerId()
返回MBean服务器代理的身份。
|
MBeanNotificationInfo[] |
getNotificationInfo()
返回一个数组表示,每个通知MBean可能发送的通知和通知类型的java类的名称。
|
String |
getSpecificationName()
返回JMX规范实施该产品的全名。
|
String |
getSpecificationVendor()
返回JMX规范实现此产品的供应商。
|
String |
getSpecificationVersion()
返回JMX规范实施的这个产品的版本。
|
void |
removeNotificationListener(NotificationListener listener)
从这个MBean移除侦听器。
|
void |
removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
从这个MBean移除侦听器。
|
void |
sendNotification(Notification notification)
使MBean服务器发送一个通知。
|
public static final ObjectName DELEGATE_NAME
public String getMBeanServerId()
getMBeanServerId
接口
MBeanServerDelegateMBean
public String getSpecificationName()
getSpecificationName
接口
MBeanServerDelegateMBean
public String getSpecificationVersion()
getSpecificationVersion
接口
MBeanServerDelegateMBean
public String getSpecificationVendor()
getSpecificationVendor
接口
MBeanServerDelegateMBean
public String getImplementationName()
getImplementationName
接口
MBeanServerDelegateMBean
public String getImplementationVersion()
getImplementationVersion
接口
MBeanServerDelegateMBean
public String getImplementationVendor()
getImplementationVendor
接口
MBeanServerDelegateMBean
public MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
返回一个数组表示,每个通知MBean可能发送的通知和通知类型的java类的名称。
对于MBean发送该数组中没有描述的通知不违法。然而,这个MBean服务器的一些客户可能取决于阵列完成其正确运作。
getNotificationInfo
接口
NotificationBroadcaster
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
NotificationBroadcaster
addNotificationListener
接口
NotificationBroadcaster
listener
-监听器对象将处理由电视台发出的通知。
filter
-滤波对象。如果过滤器为空,则在处理通知之前没有进行过滤。
handback
-一个不透明的物体被送回听者当通知发出。此对象不能被通知广播对象使用。它应该是怨恨与通知的通知不变。
IllegalArgumentException
侦听器参数为空。
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
NotificationEmitter
从这个MBean移除侦听器。MBean必须完全匹配listener
听众了,filter
,和handback
参数。如果有多于一个这样的侦听器,只有一个被删除。
的filter
和handback
参数可以为null,如果他们在听众被删除是空的。
removeNotificationListener
接口
NotificationEmitter
listener
-听者以前添加到这个MBean。
filter
-过滤器,当你添加指定的。
handback
-盖印,指定当听众加入。
ListenerNotFoundException
-听者不是MBean注册,或不与给定的滤波器和盖印注册。
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
NotificationBroadcaster
removeNotificationListener
接口
NotificationBroadcaster
listener
-听者以前添加到这个MBean。
ListenerNotFoundException
-听者不是MBean注册。
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
,
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
public void sendNotification(Notification notification)
notification
-通知发送。
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.