Beispiel #1
0
        protected override bool VisitAllURLsJustOneTime(SWUrlBaseVisitor visitor)
        {
            if (base.VisitAllURLsJustOneTime(visitor))
            {
                return(true);
            }


            if (RankHandler.intNumUrlsThatFoundDifferenceInPrecisionDigits == 0)
            {
                Report(string.Format("----- No Pagerank found with difference more than [{0}] decimal digits. -----", RankHandler.intMinAllowedDivergedPrecisionDigits));
                //RankHandler.blnFoundURlWithoutRank = false;
                Report("----- Trying to Flush on DB -----");
                int intCountFlush = RankHandler.DBFlush();
                Report(string.Format("----- End of Flushing. Flushed: #{0} records -----", intCountFlush));

                return(true);
            }
            else
            {
                Report(string.Format("----- {0} URLs found with their Pageranks different more than [{1}] decimal digits than their previous values. -----", RankHandler.intNumUrlsThatFoundDifferenceInPrecisionDigits, RankHandler.intMinAllowedDivergedPrecisionDigits));
            }

            RankHandler.intNumUrlsThatFoundDifferenceInPrecisionDigits = 0;
            //RankHandler.blnFoundURlWithoutRank = false;
            return(false);
        }