/**
*
* @param flag Flag to be exposed through JMX.
* @param source MBean or ObjectName of the object where the flag resides.
* @param nbs NotificationBroadcasterSupport through which the events will be send.
*/
public JMXFlagDecorator(Flag<T> flag, ObjectName source, MBeanServer mbs, String flagName) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
this.flag = flag;
this.source = source;
this.flagName = flagName;
ObjectName name = PogamutJMX.getObjectName(source, flagName, PogamutJMX.FLAGS_SUBTYPE);
mbs.registerMBean(this, name);
flag.addListener(listener);
}
JMXFlagDecorator.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:Pogamut3
作者:
评论列表
文章目录