/**
* Initialize the notofocation listener and filter.
*/
public void init() {
listener = new SimpleNotificationListener();
AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();
filter.enableAttribute("Attribute1");
filter.disableAttribute("Attribute2");
this.filter = filter;
mbsd = new MBeanServerDelegate();
n1 = new AttributeChangeNotification(this, 1, System
.currentTimeMillis(), "Attribute1 changed", "Attribute1",
"java.lang.String", "oldVal1", "newVal1");
n2 = new AttributeChangeNotification(this, 2, System
.currentTimeMillis(), "Attribute2 changed", "Attribute2",
"java.lang.String", "oldVal2", "newVal2");
}
MBeanServerDelegateTest.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录