@Override public GetClusterMetricsResponse getClusterMetrics( GetClusterMetricsRequest request) throws YarnException, IOException { GetClusterMetricsRequestProto requestProto = ((GetClusterMetricsRequestPBImpl) request).getProto(); try { return new GetClusterMetricsResponsePBImpl(proxy.getClusterMetrics(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetClusterMetricsRequestPBImpl() { builder = GetClusterMetricsRequestProto.newBuilder(); }
public GetClusterMetricsRequestPBImpl(GetClusterMetricsRequestProto proto) { this.proto = proto; viaProto = true; }
public GetClusterMetricsRequestProto getProto() { proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Test public void testGetClusterMetricsRequestPBImpl() throws Exception { validatePBImplRecord(GetClusterMetricsRequestPBImpl.class, GetClusterMetricsRequestProto.class); }