@Override public GetClusterNodeLabelsResponse getClusterNodeLabels( GetClusterNodeLabelsRequest request) throws YarnException, IOException { GetClusterNodeLabelsRequestProto requestProto = ((GetClusterNodeLabelsRequestPBImpl) request).getProto(); try { return new GetClusterNodeLabelsResponsePBImpl(proxy.getClusterNodeLabels( null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetClusterNodeLabelsRequestPBImpl() { builder = GetClusterNodeLabelsRequestProto.newBuilder(); }
public GetClusterNodeLabelsRequestPBImpl(GetClusterNodeLabelsRequestProto proto) { this.proto = proto; viaProto = true; }
public GetClusterNodeLabelsRequestProto getProto() { proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Test public void testGetClusterNodeLabelsRequestPBImpl() throws Exception { validatePBImplRecord(GetClusterNodeLabelsRequestPBImpl.class, GetClusterNodeLabelsRequestProto.class); }