@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); } }