@Override public KillTaskAttemptResponseProto killTaskAttempt(RpcController controller, KillTaskAttemptRequestProto proto) throws ServiceException { KillTaskAttemptRequest request = new KillTaskAttemptRequestPBImpl(proto); try { KillTaskAttemptResponse response = real.killTaskAttempt(request); return ((KillTaskAttemptResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public KillTaskAttemptResponse killTaskAttempt(KillTaskAttemptRequest request) throws IOException { KillTaskAttemptRequestProto requestProto = ((KillTaskAttemptRequestPBImpl)request).getProto(); try { return new KillTaskAttemptResponsePBImpl(proxy.killTaskAttempt(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
public KillTaskAttemptRequestPBImpl() { builder = KillTaskAttemptRequestProto.newBuilder(); }
public KillTaskAttemptRequestPBImpl(KillTaskAttemptRequestProto proto) { this.proto = proto; viaProto = true; }
public KillTaskAttemptRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = KillTaskAttemptRequestProto.newBuilder(proto); } viaProto = false; }