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