@Override public ReleaseSharedCacheResourceResponse release( ReleaseSharedCacheResourceRequest request) throws YarnException, IOException { ReleaseSharedCacheResourceRequestProto requestProto = ((ReleaseSharedCacheResourceRequestPBImpl) request).getProto(); try { return new ReleaseSharedCacheResourceResponsePBImpl(proxy.release(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public ReleaseSharedCacheResourceRequestPBImpl() { builder = ReleaseSharedCacheResourceRequestProto.newBuilder(); }
public ReleaseSharedCacheResourceRequestPBImpl( ReleaseSharedCacheResourceRequestProto proto) { this.proto = proto; viaProto = true; }
public ReleaseSharedCacheResourceRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = ReleaseSharedCacheResourceRequestProto.newBuilder(proto); } viaProto = false; }