Search in sources :

Example 1 with TracerPool

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;
}
Also used : SpanReceiver(org.apache.htrace.core.SpanReceiver) TracerPool(org.apache.htrace.core.TracerPool)

Aggregations

SpanReceiver (org.apache.htrace.core.SpanReceiver)1 TracerPool (org.apache.htrace.core.TracerPool)1