@Override public void run() { if (a == null) { return; } SLACommon slac = new SLACommon(); slac.DoAlerts(a); } }
@Override public void run() { try { AlertContainer poll = queue.poll(); if (poll != null) { SLACommon slac = new SLACommon(); do { slac.DoAlerts(poll); poll = queue.poll(); } while (poll != null); } SLAProcessorSingleton.setRunning(false); log.log(org.apache.log4j.Level.INFO, SLACommon.getBundleString("InternalAlertingSingletonStop")); } catch (Throwable t) { log.log(org.apache.log4j.Level.FATAL, SLACommon.getBundleString("InternalAlertingSingletonStop"), t); t.printStackTrace(); } } }