@Override public GetContainerStatusesResponse getContainerStatuses( GetContainerStatusesRequest request) throws YarnException, IOException { GetContainerStatusesRequestProto requestProto = ((GetContainerStatusesRequestPBImpl) request).getProto(); try { return new GetContainerStatusesResponsePBImpl(proxy.getContainerStatuses( null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetContainerStatusesRequestPBImpl() { builder = GetContainerStatusesRequestProto.newBuilder(); }
public GetContainerStatusesRequestPBImpl( GetContainerStatusesRequestProto proto) { this.proto = proto; viaProto = true; }
public GetContainerStatusesRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetContainerStatusesRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testGetContainerStatusesRequestPBImpl() throws Exception { validatePBImplRecord(GetContainerStatusesRequestPBImpl.class, GetContainerStatusesRequestProto.class); }