@Override public ReservationSubmissionResponse submitReservation(ReservationSubmissionRequest request) throws YarnException, IOException { ReservationSubmissionRequestProto requestProto = ((ReservationSubmissionRequestPBImpl) request).getProto(); try { return new ReservationSubmissionResponsePBImpl(proxy.submitReservation(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public ReservationSubmissionRequestPBImpl() { builder = ReservationSubmissionRequestProto.newBuilder(); }
public ReservationSubmissionRequestPBImpl( ReservationSubmissionRequestProto proto) { this.proto = proto; viaProto = true; }
public ReservationSubmissionRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = ReservationSubmissionRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testReservationSubmissionRequestPBImpl() throws Exception { validatePBImplRecord(ReservationSubmissionRequestPBImpl.class, ReservationSubmissionRequestProto.class); }