📄 gaugelistener.java
字号:
package org.codehaus.xfire.management.mbeans.listeners;
import javax.management.Notification;
import javax.management.NotificationListener;
import javax.management.monitor.MonitorNotification;
public class GaugeListener implements NotificationListener {
public GaugeListener() {
super();
// TODO Auto-generated constructor stub
}
public void handleNotification(Notification arg0, Object arg1) {
System.out.println("Attribute Observed "+((MonitorNotification)arg0).getObservedAttribute());
System.out.println("Notification "+((MonitorNotification)arg0).getType());
System.out.println("TimeStamp "+((MonitorNotification)arg0).getTimeStamp());
System.out.println("Threshold "+((MonitorNotification)arg0).getTrigger().toString());
System.out.println("Derived Gauge "+((MonitorNotification)arg0).getDerivedGauge());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -