• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method GetRunningTasksIds

GetRunningTasksIds()

Get All the running tasks.

Declaration
[Obsolete("This feature is not in active development and may be removed in a future update.")]
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();
Back to top Copyright © 2017 Alachisoft