@Override
  public boolean isNotificationEnabled(Notification notification) {
    return notification.getType().equals(JMXConnectionNotification.OPENED)
        || notification.getType().equals(JMXConnectionNotification.CLOSED)
        || notification.getType().equals(JMXConnectionNotification.FAILED);
  }
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.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java