JMXConnectorServer.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:OpenJSharp 作者:
/**
 * <p>Returns an array indicating the notifications that this MBean
 * sends. The implementation in <code>JMXConnectorServer</code>
 * returns an array with one element, indicating that it can emit
 * notifications of class {@link JMXConnectionNotification} with
 * the types defined in that class.  A subclass that can emit other
 * notifications should return an array that contains this element
 * plus descriptions of the other notifications.</p>
 *
 * @return the array of possible notifications.
 */
@Override
public MBeanNotificationInfo[] getNotificationInfo() {
    final String[] types = {
        JMXConnectionNotification.OPENED,
        JMXConnectionNotification.CLOSED,
        JMXConnectionNotification.FAILED,
    };
    final String className = JMXConnectionNotification.class.getName();
    final String description =
        "A client connection has been opened or closed";
    return new MBeanNotificationInfo[] {
        new MBeanNotificationInfo(types, className, description),
    };
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号