Event OnMapReduceComplete
Users can register a callback on the MapReduce task that is called when task execution is completed, failed or cancelled with a parameter response that encapsulates status of the task and result (if completed).
Namespace: Alachisoft.NCache.Runtime.MapReduce
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
event MapReduceCallback OnMapReduceComplete
Returns
Type | Description |
---|---|
MapReduceCallback |
Examples
Example registers a callback
ITrackableTask taskTracker = cache.ExecuteTask(prodAggregatorTask, new OrderKeyFilter());
taskTracker.OnMapReduceComplete += new MapReduceCallback(MapReduceCompleted);