List of usage examples for org.springframework.jmx.export.notification UnableToSendNotificationException printStackTrace
public void printStackTrace()
From source file:com.safi.asterisk.handler.connection.AbstractConnectionManager.java
private void postInfoMessage(String title, String message) { if (SafletEngine.getInstance().getServerMonitor() == null) { log.info(title + " -- " + message); return;//from w w w. ja v a 2s.c o m } try { SafletEngine.getInstance().getServerMonitor().postInfo(title, message); } catch (UnableToSendNotificationException e1) { e1.printStackTrace(); log.error("Unable to send info notification via JMX", e1); } }
From source file:com.safi.asterisk.handler.connection.AbstractConnectionManager.java
private void postErrorMessage(String title, String message) { if (SafletEngine.getInstance().getServerMonitor() == null) { log.error(title + " -- " + message); return;//from ww w .j a va 2s . c o m } try { SafletEngine.getInstance().getServerMonitor().postError(title, message); } catch (UnableToSendNotificationException e1) { e1.printStackTrace(); log.error("Unable to send info notification via JMX", e1); } }
From source file:com.safi.asterisk.handler.connection.AbstractConnectionManager.java
@Override public synchronized void asteriskServerRemoved(Integer id) { if (removeSafiManagerConnection(id)) { try {/*from ww w . ja v a2 s .co m*/ SafletEngine.getInstance().getServerMonitor().postInfo("Asterisk Server Removed", "An active AsteriskServer with id " + id + " was shutdown and removed"); } catch (UnableToSendNotificationException e1) { e1.printStackTrace(); log.error("Unable to send info notification via JMX", e1); } } }