JavaTM 2 Platform
Standard Ed. 6

類別 javax.management.Notification
的使用

使用 Notification 的軟體套件
javax.management 提供 Java Management Extensions 的核心類別。 
javax.management.modelmbean 提供了 ModelMBean 類別的定義。 
javax.management.monitor 提供 monitor 類別的定義。 
javax.management.relation 提供 Relation Service 的定義。 
javax.management.remote 對 JMX MBean 伺服器進行遠端存取使用的介面。 
javax.management.timer 提供對 Timer MBean(計時器 MBean)的定義。 
 

javax.management 中 Notification 的使用
 

javax.management 中 Notification 的子類別
 class AttributeChangeNotification
          提供 MBean 所發送的屬性更改通知的定義。
 class MBeanServerNotification
          表示 MBean 伺服器通過 MBeanServerDelegate MBean 所發出的通知。
 

參數型別為 Notification 的 javax.management 中的方法
protected  void NotificationBroadcasterSupport.handleNotification(NotificationListener listener, Notification notif, Object handback)
          為了向偵聽器發送通知,由該偵聽器的 sendNotification 調用此方法。
 void NotificationListener.handleNotification(Notification notification, Object handback)
          出現 JMX 通知時調用。
 boolean AttributeChangeNotificationFilter.isNotificationEnabled(Notification notification)
          向偵聽器發送指定的通知之前調用。
 boolean NotificationFilter.isNotificationEnabled(Notification notification)
          向偵聽器發送指定通知前調用。
 boolean NotificationFilterSupport.isNotificationEnabled(Notification notification)
          向偵聽器發送指定的通知前調用。
 void MBeanServerDelegate.sendNotification(Notification notification)
          允許 MBean 伺服器發送通知。
 void NotificationBroadcasterSupport.sendNotification(Notification notification)
          發送一個通知。
 void StandardEmitterMBean.sendNotification(Notification n)
          發送通知。
 

javax.management.modelmbean 中 Notification 的使用
 

參數型別為 Notification 的 javax.management.modelmbean 中的方法
 void ModelMBeanNotificationBroadcaster.sendNotification(Notification ntfyObj)
          以 jmx.modelmbean.generic 通知形式將傳入的 Notification 發送到 ModelMBean 上已註冊的 Notification 偵聽器。
 void RequiredModelMBean.sendNotification(Notification ntfyObj)
           
 

javax.management.monitor 中 Notification 的使用
 

javax.management.monitor 中 Notification 的子類別
 class MonitorNotification
          提供對監視器 MBean 發送的通知的定義。
 

javax.management.relation 中 Notification 的使用
 

javax.management.relation 中 Notification 的子類別
 class RelationNotification
          Relation Service(關係服務)中的更改通知。
 

參數型別為 Notification 的 javax.management.relation 中的方法
 void RelationService.handleNotification(Notification notif, Object handback)
          出現 JMX 通知時調用。
 boolean MBeanServerNotificationFilter.isNotificationEnabled(Notification notif)
          向偵聽器發送指定通知之前調用。
 

javax.management.remote 中 Notification 的使用
 

javax.management.remote 中 Notification 的子類別
 class JMXConnectionNotification
          在客戶端連接打開或關閉時,或者當通知丟失時發出的通知。
 

返回 Notification 的 javax.management.remote 中的方法
 Notification TargetedNotification.getNotification()
          發出的通知。
 

參數型別為 Notification 的 javax.management.remote 中的建構子
TargetedNotification(Notification notification, Integer listenerID)
          建構一個 TargetedNotification 物件。
 

javax.management.timer 中 Notification 的使用
 

javax.management.timer 中 Notification 的子類別
 class TimerNotification
          此類別定義了由計時器 MBean 發送的通知。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。