use of org.apache.htrace.core.TracerPool in project hadoop by apache.
the class TracerConfigurationManager method listSpanReceivers.
public synchronized SpanReceiverInfo[] listSpanReceivers() throws IOException {
TracerPool pool = TracerPool.getGlobalTracerPool();
SpanReceiver[] receivers = pool.getReceivers();
SpanReceiverInfo[] info = new SpanReceiverInfo[receivers.length];
for (int i = 0; i < receivers.length; i++) {
SpanReceiver receiver = receivers[i];
info[i] = new SpanReceiverInfo(receiver.getId(), receiver.getClass().getName());
}
return info;
}
Aggregations