私はJMX
上Spring
documentationを通過すると、次の段落に出くわした:JMX-Spring - 'JMXNotification'はいつ放映されますか?
By configuring NotificationListeners in place, every time a JMX Notification is broadcast
from the target MBean (bean:name=testBean1),the ConsoleLoggingNotificationListener bean
that was registered as a listener via the notificationListenerMappings property will be
notified.
そして、これがConsoleLoggingNotificationListener
の実装方法である:私は、私は初心者ですから、
public class ConsoleLoggingNotificationListener
implements NotificationListener, NotificationFilter {
public void handleNotification(Notification notification, Object handback) {
System.out.println(notification);
System.out.println(handback);
}
public boolean isNotificationEnabled(Notification notification) {
return AttributeChangeNotification.class.isAssignableFrom(notification.getClass());
}
}
をしかし、 JMX Notification
はいつブロードキャストされますか? JMXで公開されている属性の値がの場合は、に変更されますか?
私はこれを知って助けてください。
ありがとうございます!