/// <summary> /// Get the list of running server caches /// </summary> /// <returns></returns> public virtual Hashtable GetServerCaches() { try { Hashtable cacheList = new Hashtable(); IDictionary coll = _server.GetCacheProps(); IDictionaryEnumerator ie = coll.GetEnumerator(); while (ie.MoveNext()) { if (ie.Value is CacheServerConfig) { CacheServerConfig cacheProp = (CacheServerConfig)ie.Value; if (cacheProp.Cluster != null) { if ((cacheProp.Cluster.Topology == "partitioned-server") || (cacheProp.Cluster.Topology == "replicated-server")) { cacheList.Add(ie.Key, cacheProp); } } } else if (ie.Value is Hashtable) { cacheList.Add(ie.Key, ie.Value); } } return(cacheList); } catch (Exception e) { throw e; } }