internal StateTxfrCorresponder(ClusterCacheBase parent, DistributionManager distMgr, Address requestingNode, byte transferType) { _parent = parent; _distMgr = distMgr; _clientNode = requestingNode; _transferType = transferType; }
/// <summary> /// Constructor /// </summary> /// <param name="listener"></param> /// <param name="data"></param> public AsyncBroadcastCustomNotifyRemoval(ClusterCacheBase parent, object key, CacheEntry entry, ItemRemoveReason reason, OperationContext operationContext, EventContext eventContext) { _parent = parent; _key = key; _entry = entry; _reason = reason; _operationContext = operationContext; _eventContext = eventContext; }
/// <summary> /// Sets the cancel flag. /// </summary> public void Cancel() { lock (this) { _parent = null; } }
/// <summary> /// Overloaded Constructor. /// </summary> /// <param name="parent"></param> /// <param name="period"></param> public AutomaticDataLoadBalancer(ClusterCacheBase parent, long period) { _parent = parent; _period = period; }
/// <summary> /// Constructor. /// </summary> /// <param name="parent"></param> public AutomaticDataLoadBalancer(ClusterCacheBase parent) { _parent = parent; }
public BalanceNodeMgr(ClusterCacheBase parent) { _parent = parent; }
/// <summary> /// Constructor /// </summary> /// <param name="parent"></param> public StateTransferTask(ClusterCacheBase parent, Address localAdd) { _parent = parent; _promise = new Promise(); _localAddress = localAdd; if (!string.IsNullOrEmpty(System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.StateTransferDataSizePerSecond"])) { try { float result = 0; float.TryParse(System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.StateTransferDataSizePerSecond"], out result); if (result > 0) stateTxfrDataSizePerSecond = (long)(result * MB); } catch (Exception e) { _parent.NCacheLog.Error(this.Name, "Invalid value specified for NCacheServer.StateTransferDataSizePerSecond." + System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.StateTransferDataSizePerSecond"]); } } if (!string.IsNullOrEmpty(System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.EnableGCDuringStateTransfer"])) { try { bool enabled = false; if (bool.TryParse(System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.EnableGCDuringStateTransfer"], out enabled)) _enableGc = enabled; } catch (Exception e) { _parent.NCacheLog.Error(this.Name, "Invalid value specified for NCacheServer.EnableGCDuringStateTransfer." + System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.EnableGCDuringStateTransfer"]); } } if (!string.IsNullOrEmpty(System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.GCThreshold"])) { try { long threshold = _gcThreshhold; if (long.TryParse(System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.GCThreshold"], out threshold)) _gcThreshhold = threshold * MB; } catch (Exception e) { _parent.NCacheLog.Error(this.Name, "Invalid value specified for NCacheServer.GCThreshold." + System.Configuration.ConfigurationSettings.AppSettings["NCacheServer.GCThreshold"]); } } if (_parent != null && _parent.NCacheLog.IsErrorEnabled) _parent.NCacheLog.CriticalInfo(Name, " explicit-gc-enabled =" + _enableGc + " threshold = " + _gcThreshhold); }
public UpdateIndicesTask(ClusterCacheBase cache, object key) { _cache = cache; _key = key; }
/// <summary> /// Overloaded Constructor. /// </summary> /// <param name="parent"></param> /// <param name="period"></param> public PeriodicStatsUpdater(ClusterCacheBase parent, long period) { _parent = parent; _period = period; }
/// <summary> /// Constructor. /// </summary> /// <param name="parent"></param> public PeriodicStatsUpdater(ClusterCacheBase parent) { _parent = parent; }