use of org.apache.hadoop.tracing.TraceAdminPB.SpanReceiverListInfo in project hadoop by apache.
the class TraceAdminProtocolTranslatorPB method listSpanReceivers.
@Override
public SpanReceiverInfo[] listSpanReceivers() throws IOException {
ArrayList<SpanReceiverInfo> infos = new ArrayList<SpanReceiverInfo>(1);
try {
ListSpanReceiversRequestProto req = ListSpanReceiversRequestProto.newBuilder().build();
ListSpanReceiversResponseProto resp = rpcProxy.listSpanReceivers(null, req);
for (SpanReceiverListInfo info : resp.getDescriptionsList()) {
infos.add(new SpanReceiverInfo(info.getId(), info.getClassName()));
}
} catch (ServiceException e) {
throw ProtobufHelper.getRemoteException(e);
}
return infos.toArray(new SpanReceiverInfo[infos.size()]);
}
Aggregations