@Override public GetApplicationAttemptsResponse getApplicationAttempts( GetApplicationAttemptsRequest request) throws YarnException, IOException { GetApplicationAttemptsRequestProto requestProto = ((GetApplicationAttemptsRequestPBImpl) request).getProto(); try { return new GetApplicationAttemptsResponsePBImpl( proxy.getApplicationAttempts(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public GetApplicationAttemptsRequestPBImpl() { builder = GetApplicationAttemptsRequestProto.newBuilder(); }
public GetApplicationAttemptsRequestPBImpl( GetApplicationAttemptsRequestProto proto) { this.proto = proto; viaProto = true; }
public GetApplicationAttemptsRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetApplicationAttemptsRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testGetApplicationAttemptsRequestPBImpl() throws Exception { validatePBImplRecord(GetApplicationAttemptsRequestPBImpl.class, GetApplicationAttemptsRequestProto.class); }