/** * All notifications are intercepted here and are routed for emission. */ public void handleNotification2(Notification n, Object handback) { if (log.isDebugEnabled()) { log.debug("Received notification: <" + n + "> Payload " + "TS: <" + n.getTimeStamp() + "> " + "SN: <" + n.getSequenceNumber() + "> " + "T: <" + n.getType() + ">"); } try { this.trapEmitter.send(n); } catch (Exception e) { log.error("Sending trap", e); } }
/** * All notifications are intercepted here and are routed for emission. */ public void handleNotification2(Notification n, Object handback) { if (log.isDebugEnabled()) { log.debug("Received notification: <" + n + "> Payload " + "TS: <" + n.getTimeStamp() + "> " + "SN: <" + n.getSequenceNumber() + "> " + "T: <" + n.getType() + ">"); } try { this.trapEmitter.send(n); } catch (Exception e) { log.error("Sending trap", e); } }
@Override public void sendJMXNotification(Notification notification) { if(notification.getSequenceNumber() <= 0) { notification.setSequenceNumber(getNextNotificationSequenceNumber()); } try { this.trapEmitter.send(notification); } catch (Exception e) { log.error("Problem occured while Sending trap", e); } }
@Override public void sendJMXNotification(Notification notification) { if(notification.getSequenceNumber() <= 0) { notification.setSequenceNumber(getNextNotificationSequenceNumber()); } try { this.trapEmitter.send(notification); } catch (Exception e) { log.error("Problem occured while Sending trap", e); } }