@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersRequestProto requestProto = ((GetContainersRequestPBImpl) request).getProto(); try { return new GetContainersResponsePBImpl(proxy.getContainers(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetContainersRequestPBImpl() { builder = GetContainersRequestProto.newBuilder(); }
public GetContainersRequestPBImpl(GetContainersRequestProto proto) { this.proto = proto; viaProto = true; }
public GetContainersRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetContainersRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testGetContainersRequestPBImpl() throws Exception { validatePBImplRecord(GetContainersRequestPBImpl.class, GetContainersRequestProto.class); }