示例#1
0
        public virtual void Initialize(RachisConsensus parent, ClusterOperationContext context, ClusterChanges changes)
        {
            _parent = parent;
            ContextPoolForReadOnlyOperations = _parent.ContextPool;
            Changes = changes;

            Validator = InitializeValidator();
        }
示例#2
0
 public override void Dispose()
 {
     _storageEnvironment = null;
     _changes            = null;
     base.Dispose();
 }
示例#3
0
 public ClusterTransaction(Transaction transaction, ClusterChanges clusterChanges)
     : base(transaction)
 {
     _clusterChanges = clusterChanges ?? throw new System.ArgumentNullException(nameof(clusterChanges));
 }
示例#4
0
 public ClusterContextPool(ClusterChanges changes, StorageEnvironment storageEnvironment, Size?maxContextSizeToKeepInMb = null)
     : base(maxContextSizeToKeepInMb)
 {
     _changes            = changes ?? throw new ArgumentNullException(nameof(changes));
     _storageEnvironment = storageEnvironment ?? throw new ArgumentNullException(nameof(storageEnvironment));
 }
示例#5
0
 public ClusterOperationContext(ClusterChanges changes, StorageEnvironment environment, int initialSize, int longLivedSize, int maxNumberOfAllocatedStringValues, SharedMultipleUseFlag lowMemoryFlag)
     : base(initialSize, longLivedSize, maxNumberOfAllocatedStringValues, lowMemoryFlag)
 {
     _changes    = changes ?? throw new ArgumentNullException(nameof(changes));
     Environment = environment ?? throw new ArgumentNullException(nameof(environment));
 }