Interface ITrackableTask
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Obsolete("This feature is not in active development and may be removed in a future update.")]
public interface ITrackableTask
Properties
Name | Description |
---|---|
TaskId | Unique GUID identification of MapReduce task. |
TaskStatus | Gets the task’s status and contains following values: Waiting, InProgress, Completed, Cancelled, Failed. |
Methods
Name | Description |
---|---|
CancelTask() | Cancels the already running task. |
GetResult() | This is a blocking call that waits for the callback from the server about the task’s completion, failure or cancellation in the form of an ITaskResult. |
GetResult(Int32) | If no result is obtained within the provided timeout, OperationFailedException will be thrown. |
Events
Name | Description |
---|---|
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). |