@Override public StopContainersResponse stopContainers(StopContainersRequest requests) throws YarnException, IOException { StopContainersRequestProto requestProto = ((StopContainersRequestPBImpl) requests).getProto(); try { return new StopContainersResponsePBImpl(proxy.stopContainers(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public StopContainersRequestPBImpl() { builder = StopContainersRequestProto.newBuilder(); }
public StopContainersRequestPBImpl(StopContainersRequestProto proto) { this.proto = proto; viaProto = true; }
public StopContainersRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = StopContainersRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testStopContainersRequestPBImpl() throws Exception { validatePBImplRecord(StopContainersRequestPBImpl.class, StopContainersRequestProto.class); }