Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj is PartShardInfo)
            {
                PartShardInfo other = (PartShardInfo)obj;

                if (this.ShardName.Equals(other.ShardName))
                {
                    return(true);
                }
            }
            return(false);
        }
Пример #2
0
 public DistributionInfoData(DistributionMode distMode, ClusterActivity clustActivity, PartShardInfo affectedShard)
 {
     _distMode      = distMode;
     _clustActivity = clustActivity;
     _affectedShard = affectedShard;
 }
Пример #3
0
 public DistributionInfoData(DistributionMode distMode, ClusterActivity clustActivity, PartShardInfo affectedShard, bool needTransfer) : this(distMode, clustActivity, affectedShard)
 {
     _needTransfer = needTransfer;
 }