@After public void cleanUp() { Trace.removeReceiver(traceSpanReceiver); if (testTraceWriter != null) testTraceWriter.stop(); }
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()); } }
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()); } }