private void notify(int id, Notification n, Object handback) { Association association = get(id); if (association != null) { association.listener.handleNotification(n, association.handBack); } else { // If an invalid ID is received don't throw an error, instead just send // a message to the server canceling the notification by id. try { log.warnf("Notification recieved for non existant NotificationListener %d", id); mbeanServerConnection.removeNotificationListener(new int[] { id }); } catch (InstanceNotFoundException e) { } catch (ListenerNotFoundException e) { } catch (IOException e) { } } }
private void notify(int id, Notification n, Object handback) { Association association = get(id); if (association != null) { association.listener.handleNotification(n, association.handBack); } else { // If an invalid ID is received don't throw an error, instead just send // a message to the server canceling the notification by id. try { log.warnf("Notification recieved for non existant NotificationListener %d", id); mbeanServerConnection.removeNotificationListener(new int[] { id }); } catch (InstanceNotFoundException e) { } catch (ListenerNotFoundException e) { } catch (IOException e) { } } }
private void notify(int id, Notification n, Object handback) { Association association = get(id); if (association != null) { association.listener.handleNotification(n, association.handBack); } else { // If an invalid ID is received don't throw an error, instead just send // a message to the server canceling the notification by id. try { log.warnf("Notification recieved for non existant NotificationListener %d", id); mbeanServerConnection.removeNotificationListener(new int[] { id }); } catch (InstanceNotFoundException e) { } catch (ListenerNotFoundException e) { } catch (IOException e) { } } }