Beispiel #1
0
 internal StateTxfrCorresponder(ClusterCacheBase parent, DistributionManager distMgr, Address requestingNode, byte transferType)
 {
     _parent       = parent;
     _distMgr      = distMgr;
     _clientNode   = requestingNode;
     _transferType = transferType;
 }
 public DataSourceReplicationManager(ClusterCacheBase parent, DatasourceMgr dsMgr, ILogger NCacheLog)
 {
     _parent    = parent;
     _dsManager = dsMgr;
     _ncacheLog = NCacheLog;
     _queue     = new WriteBehindAsyncProcessor.WriteBehindQueue(_parent.Context);
 }
 internal ReplicaStateTxfrCorresponder(ClusterCacheBase parent, Address requestingNode)
 {
     _parent       = parent;
     _clientNode   = requestingNode;
     stream        = new MemoryStream((int)_threshold);
     _keyCount     = 0;
     _collKeyCount = 0;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="listener"></param>
 /// <param name="data"></param>
 public AsyncBroadcastNotifyRemoval(ClusterCacheBase parent, object key, object value, ItemRemoveReason reason, OperationContext operationContext, EventContext[] eventContexts)
 {
     _parent           = parent;
     _key              = key;
     _value            = value;
     _reason           = reason;
     _operationContext = operationContext;
     _eventContexts    = eventContexts;
 }
 internal StateTxfrCorresponder(ClusterCacheBase parent, DistributionManager distMgr, Address requestingNode, byte transferType)
 {
     _parent              = parent;
     _distMgr             = distMgr;
     _clientNode          = requestingNode;
     _transferType        = parent.IsStartedAsMirror && transferType == StateTransferType.REPLICATE_DATA ? StateTransferType.MOVE_DATA : transferType;
     _transferTypeChanged = parent.IsStartedAsMirror && transferType == StateTransferType.REPLICATE_DATA;
     stream = new MemoryStream((int)_threshold);
 }
 /// <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;
 }
        public void Dispose()
        {
            _collKeyCount = 0;
            _parent       = null;

            _keyList         = null;
            _collectionsList = null;
            _collectionStateTransferStarted = false;
            stream = null;
        }
Beispiel #8
0
        private String GetReciepent()
        {
            string ipAddress = String.Empty;
            int    port      = 0;

            if (_context.Render != null)
            {
                ipAddress = _context.Render.IPAddress.ToString();//server address
            }
#if !CLIENT
            if (_context.IsClusteredImpl)
            {
                ClusterCacheBase clusterCache = ((ClusterCacheBase)_context.CacheImpl);

                if (clusterCache.Cluster != null && clusterCache.Cluster.LocalAddress != null)
                {
                    Address localAddress = clusterCache.Cluster.LocalAddress;
                    port = localAddress.Port;

                    if (String.IsNullOrEmpty(ipAddress))
                    {
                        var clusterStat = clusterCache.Statistics as ClusterCacheStatistics;
                        if (clusterStat != null)
                        {
                            ArrayList nodes = clusterStat.Nodes;
                            if (nodes != null)
                            {
                                foreach (NodeInfo node in nodes)
                                {
                                    if (node.RendererAddress != null && node.Address.IpAddress.Equals(localAddress.IpAddress))
                                    {
                                        ipAddress = node.RendererAddress.IpAddress.ToString();
                                    }
                                }
                            }
                        }
                    }
                }
            }
#endif

            return(ipAddress + ":" + port);
        }
 /// <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;
 }
Beispiel #12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="listener"></param>
 /// <param name="data"></param>
 public PollTask(ClusterCacheBase parent, OperationContext operationContext)
 {
     _parent           = parent;
     _operationContext = operationContext;
 }
 internal ContinuousQueryStateTransferManager(ClusterCacheBase parent, ActiveQueryAnalyzer queryAnalyzer)
 {
     _parent        = parent;
     _queryAnalyzer = queryAnalyzer;
 }
Beispiel #14
0
 internal PORStateTxfrCorresponder(ClusterCacheBase parent, DistributionManager distMgr, Address requestingNode) : base(parent, distMgr, requestingNode, StateTransferType.REPLICATE_DATA)
 {
 }
Beispiel #15
0
 /// <summary>
 /// Overloaded Constructor.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="period"></param>
 public PeriodicStatsUpdater(ClusterCacheBase parent, long period)
 {
     _parent = parent;
     _period = period;
 }
Beispiel #16
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="parent"></param>
 public PeriodicStatsUpdater(ClusterCacheBase parent)
 {
     _parent = parent;
 }
Beispiel #17
0
 public BalanceNodeMgr(ClusterCacheBase parent)
 {
     _parent = parent;
 }
Beispiel #18
0
 public UpdateIndicesTask(ClusterCacheBase cache, object key)
 {
     _cache = cache;
     _key   = key;
 }