Search in sources :

Example 1 with GenericRefreshResponseProto

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;
}
Also used : RefreshResponse(org.apache.hadoop.ipc.RefreshResponse) GenericRefreshResponseProto(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 RefreshResponse (org.apache.hadoop.ipc.RefreshResponse)1 GenericRefreshResponseProto (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto)1