@Override public FailTaskAttemptResponseProto failTaskAttempt(RpcController controller, FailTaskAttemptRequestProto proto) throws ServiceException { FailTaskAttemptRequest request = new FailTaskAttemptRequestPBImpl(proto); try { FailTaskAttemptResponse response = real.failTaskAttempt(request); return ((FailTaskAttemptResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public FailTaskAttemptResponse failTaskAttempt(FailTaskAttemptRequest request) throws IOException { FailTaskAttemptRequestProto requestProto = ((FailTaskAttemptRequestPBImpl)request).getProto(); try { return new FailTaskAttemptResponsePBImpl(proxy.failTaskAttempt(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
public FailTaskAttemptRequestPBImpl() { builder = FailTaskAttemptRequestProto.newBuilder(); }
public FailTaskAttemptRequestPBImpl(FailTaskAttemptRequestProto proto) { this.proto = proto; viaProto = true; }
public FailTaskAttemptRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = FailTaskAttemptRequestProto.newBuilder(proto); } viaProto = false; }