⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaugelistener.java

📁 Xfire文件 用于开发web service 的一个开源工具 很好用的
💻 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 + -