/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual MRServiceProtos.KillTaskResponseProto KillTask(RpcController controller , MRServiceProtos.KillTaskRequestProto proto) { KillTaskRequest request = new KillTaskRequestPBImpl(proto); try { KillTaskResponse response = real.KillTask(request); return(((KillTaskResponsePBImpl)response).GetProto()); } catch (IOException e) { throw new ServiceException(e); } }
/// <exception cref="System.IO.IOException"/> public virtual KillTaskResponse KillTask(KillTaskRequest request) { TaskId taskId = request.GetTaskId(); UserGroupInformation callerUGI = UserGroupInformation.GetCurrentUser(); string message = "Kill task " + taskId + " received from " + callerUGI + " at " + Server.GetRemoteAddress(); MRClientService.Log.Info(message); this.VerifyAndGetTask(taskId, JobACL.ModifyJob); this._enclosing.appContext.GetEventHandler().Handle(new TaskEvent(taskId, TaskEventType .TKill)); KillTaskResponse response = this.recordFactory.NewRecordInstance <KillTaskResponse >(); return(response); }
/// <exception cref="System.IO.IOException"/> public virtual KillTaskResponse KillTask(KillTaskRequest request) { KillTaskResponse resp = recordFactory.NewRecordInstance <KillTaskResponse>(); return(resp); }