Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            bool state = false;

            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            ShardRecoveryJobState _val = obj as ShardRecoveryJobState;

            if (_identifier.Equals(_val.Identifier))
            {
                if (_shard.Equals(_val.Shard))
                {
                    if (_node.Equals(_val._node))
                    {
                        if (_cluster.Equals(_val._cluster))
                        {
                            if (_jobType == _val._jobType)
                            {
                                state = true;
                            }
                        }
                    }
                }
            }

            return(state);
        }
Ejemplo n.º 2
0
        public void UpdateJobStatus(ShardRecoveryJobState job)
        {
            if (_jobList.Contains(job))
            {
                // change this logic
                _jobList.Remove(job);// remove existing
            }

            _jobList.Add(job);// add new

            //M_TODO[Critical]: Update recover
            // check if  exists
            //run update utility
            // else
            // add to the original
        }