All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jppf.utils.generator.NotificationEmitterImpl.txt Maven / Gradle / Ivy

There is a newer version: 6.3-alpha
Show newest version

  @Override
  public void addNotificationListener(final NotificationListener listener, final NotificationFilter filter, final Object handback) {
    try {
      connection.addNotificationListener(mbeanName, listener, filter, handback);
    } catch (Exception e) {
      if (debugEnabled) log.debug(connection.getId() + " : error while adding notification filter", e);
    }
  }

  @Override
  public void removeNotificationListener(final NotificationListener listener) {
    try {
      connection.removeNotificationListener(mbeanName, listener, null, null);
    } catch (Exception e) {
      if (debugEnabled) log.debug(connection.getId() + " : error while removing notification filter", e);
    }
  }

  @Override
  public void removeNotificationListener(final NotificationListener listener, final NotificationFilter filter, final Object handback) {
    try {
      connection.removeNotificationListener(mbeanName, listener, filter, handback);
    } catch (Exception e) {
      if (debugEnabled) log.debug(connection.getId() + " : error while removing notification filter", e);
    }
  }

  @Override
  public MBeanNotificationInfo[] getNotificationInfo() {
    try {
      return connection.getNotificationInfo(mbeanName);
    } catch (Exception e) {
      if (debugEnabled) log.debug(connection.getId() + " : error getting MBeanNotificationInfo[]", e);
    }
    return new MBeanNotificationInfo[0];
  }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy