/** * {@inheritDoc} */ @Override public void threadFinished() { if(parser instanceof ThreadListener) { ((ThreadListener)parser).threadFinished(); } if(filter instanceof ThreadListener) { ((ThreadListener)filter).threadFinished(); } } }
@Override public void addNode(Object node, HashTree subTree) { if (node instanceof ThreadListener) { ThreadListener tl = (ThreadListener) node; if (isStart) { try { tl.threadStarted(); } catch (Exception e) { log.error("Error calling threadStarted", e); } } else { try { tl.threadFinished(); } catch (Exception e) { log.error("Error calling threadFinished", e); } } } }