Exemplo n.º 1
0
        public void ReducerFailed(MapReduceOperation operation)
        {
            Address source = operation.Source != null ? operation.Source : new Address(_parent.Context.Render.IPAddress, _parent.Context.Render.Port);

            if (participants != null)
            {
                NodeTaskStatus status = (NodeTaskStatus)participants[source];
                status.ReducerStatus = ReducerStatus.Failed;
            }
            if (_context.NCacheLog.IsInfoEnabled)
            {
                _context.NCacheLog.Info("MapReduceTask(" + this.TaskId + ").ReducerFailed", "Reducer is failed on '" + source.IpAddress.ToString() + "'");
            }
            this.Callback.Invoke(new CallbackResult(this, Notifications.TaskStatus.Failure, "Reducer Failed on" + source.IpAddress.ToString()));
            this.StopTask();
        }
Exemplo n.º 2
0
 public void MapperCompleted(MapReduceOperation operation)
 {
     lock (mutex){
         Address source = operation.Source != null ? operation.Source : new Address(_parent.Context.Render.IPAddress, _parent.Context.Render.Port);
         if (participants != null)
         {
             NodeTaskStatus status = (NodeTaskStatus)participants[source];
             if (status != null)
             {
                 status.MapperStatus = MapperStatus.Completed;
             }
         }
         if (_context.NCacheLog.IsInfoEnabled)
         {
             _context.NCacheLog.Info("MapReduceTask(" + this.TaskId + ").MapperCompleted", "Mapped is completed on '" + source.IpAddress.ToString() + "'");
         }
         CheckMappersCompleted();
     }
 }