Method GetRunningTasksIds
GetRunningTasksIds()
Get All the running tasks.
Declaration
ICollection<string> GetRunningTasksIds()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> | Collection of taskIds of running Map Reduce tasks. |
Examples
ICache cache = CacheManager.GetCache("demoClusteredCache");
string key1 = "2202";
Product product1 = new Product()
{
Id = 4,
Category = "Clothes",
UnitPrice = 4,
UnitsAvailable = 2
};
string key2 = "2203";
Product product2 = new Product()
{
Id = 4,
Category = "Shoes",
UnitPrice = 5,
UnitsAvailable = 9
};
cache.Add(key1, product1);
cache.Add(key2, product2);
//Implement Map Reduce Interferaces
MapReduceTask mapReduceTask = new MapReduceTask();
ICollection<string> runningTasks = cache.ExecutionService.GetRunningTasksIds();