@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); } }
public FailTaskAttemptResponsePBImpl() { builder = FailTaskAttemptResponseProto.newBuilder(); }
public FailTaskAttemptResponsePBImpl(FailTaskAttemptResponseProto proto) { this.proto = proto; viaProto = true; }
public FailTaskAttemptResponseProto getProto() { proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = FailTaskAttemptResponseProto.newBuilder(proto); } viaProto = false; }