use of org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto in project hadoop by apache.
the class GenericRefreshProtocolClientSideTranslatorPB method unpack.
private Collection<RefreshResponse> unpack(GenericRefreshResponseCollectionProto collection) {
List<GenericRefreshResponseProto> responseProtos = collection.getResponsesList();
List<RefreshResponse> responses = new ArrayList<RefreshResponse>();
for (GenericRefreshResponseProto rp : responseProtos) {
RefreshResponse response = unpack(rp);
responses.add(response);
}
return responses;
}
Aggregations