示例#1
0
        /// <summary>
        /// Executes local job.
        /// </summary>
        /// <param name="cancel">Cancel flag.</param>
        public void ExecuteLocal(bool cancel)
        {
            object res;
            bool   success;

            Execute0(cancel, out res, out success);

            _jobRes = new ComputeJobResultImpl(
                success ? res : null,
                success ? null : res as Exception,
                _job,
                _ignite.GetLocalNode().Id,
                cancel
                );
        }
示例#2
0
        /// <summary>
        /// Executes local job.
        /// </summary>
        /// <param name="cancel">Cancel flag.</param>
        public void ExecuteLocal(bool cancel)
        {
            object res;
            bool   success;

            Execute0(cancel, out res, out success);

            _jobRes = new ComputeJobResultImpl(
                success ? res : null,
                success ? null : new IgniteException("Compute job has failed on local node, " +
                                                     "examine InnerException for details.", (Exception)res),
                _job,
                _ignite.GetLocalNode().Id,
                cancel
                );
        }