private static synchronized void closeReceivers() { for (SpanReceiver rcvr : receivers) { try { rcvr.close(); } catch (IOException e) { log.warn("Unable to close SpanReceiver correctly: {}", e.getMessage(), e); } } receivers.clear(); } }
private static synchronized void closeReceivers() { for (SpanReceiver rcvr : receivers) { try { rcvr.close(); } catch (IOException e) { log.warn("Unable to close SpanReceiver correctly: {}", e.getMessage(), e); } } receivers.clear(); } }
/** * Calls close() on all SpanReceivers created by this SpanReceiverHost. */ public synchronized void closeReceivers() { if (closed) return; closed = true; for (SpanReceiver rcvr : receivers.values()) { try { rcvr.close(); } catch (IOException e) { LOG.warn("Unable to close SpanReceiver correctly: " + e.getMessage(), e); } } receivers.clear(); }
/** * Calls close() on all SpanReceivers created by this SpanReceiverHost. */ public synchronized void closeReceivers() { if (closed) return; closed = true; for (SpanReceiver rcvr : receivers.values()) { try { rcvr.close(); } catch (IOException e) { LOG.warn("Unable to close SpanReceiver correctly: " + e.getMessage(), e); } } receivers.clear(); }
public synchronized void removeSpanReceiver(long spanReceiverId) throws IOException { SpanReceiver rcvr = receivers.remove(spanReceiverId); if (rcvr == null) { throw new IOException("There is no span receiver with id " + spanReceiverId); } Trace.removeReceiver(rcvr); rcvr.close(); LOG.info("Successfully removed SpanReceiver " + spanReceiverId + " with class " + rcvr.getClass().getName()); } }
public synchronized void removeSpanReceiver(long spanReceiverId) throws IOException { SpanReceiver rcvr = receivers.remove(spanReceiverId); if (rcvr == null) { throw new IOException("There is no span receiver with id " + spanReceiverId); } Trace.removeReceiver(rcvr); rcvr.close(); LOG.info("Successfully removed SpanReceiver " + spanReceiverId + " with class " + rcvr.getClass().getName()); } }
/** * Calls close() on all SpanReceivers created by this SpanReceiverHost. */ public synchronized void closeReceivers() { if (closed) return; closed = true; for (SpanReceiver rcvr : receivers) { try { rcvr.close(); } catch (IOException e) { LOG.warn("Unable to close SpanReceiver correctly: " + e.getMessage(), e); } } } }
/** * Calls close() on all SpanReceivers created by this SpanReceiverHost. */ public synchronized void closeReceivers() { if (closed) return; closed = true; for (SpanReceiver rcvr : receivers.values()) { try { rcvr.close(); } catch (IOException e) { LOG.warn("Unable to close SpanReceiver correctly: " + e.getMessage(), e); } } receivers.clear(); }
public synchronized void removeSpanReceiver(long spanReceiverId) throws IOException { SpanReceiver rcvr = receivers.remove(spanReceiverId); if (rcvr == null) { throw new IOException("There is no span receiver with id " + spanReceiverId); } Trace.removeReceiver(rcvr); rcvr.close(); LOG.info("Successfully removed SpanReceiver " + spanReceiverId + " with class " + rcvr.getClass().getName()); } }