/// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual MRServiceProtos.KillJobResponseProto KillJob(RpcController controller
                                                                    , MRServiceProtos.KillJobRequestProto proto)
        {
            KillJobRequest request = new KillJobRequestPBImpl(proto);

            try
            {
                KillJobResponse response = real.KillJob(request);
                return(((KillJobResponsePBImpl)response).GetProto());
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Beispiel #2
0
            /// <exception cref="System.IO.IOException"/>
            public virtual KillJobResponse KillJob(KillJobRequest request)
            {
                JobId jobId = request.GetJobId();
                UserGroupInformation callerUGI = UserGroupInformation.GetCurrentUser();
                string message = "Kill job " + jobId + " received from " + callerUGI + " at " + Server
                                 .GetRemoteAddress();

                MRClientService.Log.Info(message);
                this.VerifyAndGetJob(jobId, JobACL.ModifyJob, false);
                this._enclosing.appContext.GetEventHandler().Handle(new JobDiagnosticsUpdateEvent
                                                                        (jobId, message));
                this._enclosing.appContext.GetEventHandler().Handle(new JobEvent(jobId, JobEventType
                                                                                 .JobKill));
                KillJobResponse response = this.recordFactory.NewRecordInstance <KillJobResponse>(
                    );

                return(response);
            }
Beispiel #3
0
        /// <exception cref="System.IO.IOException"/>
        public virtual KillJobResponse KillJob(KillJobRequest request)
        {
            KillJobResponse resp = recordFactory.NewRecordInstance <KillJobResponse>();

            return(resp);
        }