Interface ITrackableTask
Tracks the execution of MapReduce Task.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface ITrackableTask
TaskId
Unique GUID identification of MapReduce task.
Declaration
string TaskId { get; }
Property Value
Type | Description |
---|---|
System.String |
TaskStatus
Returns the status of task.
Declaration
TaskStatus TaskStatus { get; }
Property Value
Type | Description |
---|---|
TaskStatus |
CancelTask()
Cancel the already running task.
Declaration
void CancelTask()
GetResult()
Blocking call that waits untill server returns the result in form of completion, failure or cancellation of a task.
Declaration
ITaskResult GetResult()
Returns
Type | Description |
---|---|
ITaskResult | Returns an ITaskResult instance |
GetResult(Int32)
If no result is obtained within the provided timeout, OperationFailedException will be thrown.
Declaration
ITaskResult GetResult(int timeout)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | timeout | Time in millisecond in which if result is not returned, thread will be terminated and exception or null will be given |
Returns
Type | Description |
---|---|
ITaskResult | Returns an ITaskResult instance |
OnMapReduceComplete
Registered Async callback on completion, failure or cancellation of task.
Declaration
event MapReduceCallback OnMapReduceComplete
Event Type
Type | Description |
---|---|
MapReduceCallback |