protected bool isServicedController(Resource res) { if (CacheCollectorFactory.CheckMockMode()) { return(true); } return(res.Controller.Type == "UnixBaseController"); }
protected bool IsServicedController(IStatelessResourceController ctr) { if (CacheCollectorFactory.CheckMockMode()) { return(true); } return(!(ctr is IStatisticalCacheableController)); }
public static CacheCollectorFactory GetInstance() { var mode = ConfigurationManager.AppSettings[CACHE_COLLECTOR_MOCK_MODE]; if (_instance != null) { return _instance; } var result = _instance = string.IsNullOrEmpty(mode) ? new CacheCollectorFactory():new MockCacheCollectorFactory(); Common.Utility.LogInfo(" Global Cache Collector Factory of type " + result.GetType() + " is created"); return result; }
public static CacheCollectorFactory GetInstance() { var mode = ConfigurationManager.AppSettings[CACHE_COLLECTOR_MOCK_MODE]; if (_instance != null) { return(_instance); } var result = _instance = string.IsNullOrEmpty(mode) ? new CacheCollectorFactory():new MockCacheCollectorFactory(); Common.Utility.LogInfo(" Global Cache Collector Factory of type " + result.GetType() + " is created"); return(result); }