AgentImpl.java 文件源码

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

项目:monarch 作者:
/**
 * Invoked before sending the specified notification to the listener. Returns whether the given
 * notification is to be sent to the listener.
 *
 * @param notification The notification to be sent.
 * @return true if the notification has to be sent to the listener, false otherwise.
 */
public boolean isNotificationEnabled(Notification notification) {
  boolean isThisNotificationEnabled = false;
  if (notification.getType().equals(JMXConnectionNotification.OPENED)
      || notification.getType().equals(JMXConnectionNotification.CLOSED)
      || notification.getType().equals(JMXConnectionNotification.FAILED)) {
    isThisNotificationEnabled = true;
  }
  return isThisNotificationEnabled;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号