1 19 package org.archive.crawler.framework; 20 21 import java.util.Iterator ; 22 import java.util.Map ; 23 24 import org.archive.crawler.framework.exceptions.FatalConfigurationException; 25 26 61 public interface StatisticsTracking extends Runnable { 62 63 public static final String SEED_DISPOSITION_SUCCESS = 64 "Seed successfully crawled"; 65 66 public static final String SEED_DISPOSITION_FAILURE = 67 "Failed to crawl seed"; 68 69 public static final String SEED_DISPOSITION_RETRY = 70 "Failed to crawl seed, will retry"; 71 72 public static final String SEED_DISPOSITION_DISREGARD = 73 "Seed was disregarded"; 74 75 public static final String SEED_DISPOSITION_NOT_PROCESSED = 76 "Seed has not been processed"; 77 78 88 public void initialize(CrawlController c) 89 throws FatalConfigurationException; 90 91 97 public long crawlDuration(); 98 99 102 public void noteStart(); 103 104 105 111 public long totalBytesWritten(); 112 113 121 public long getCrawlerTotalElapsedTime(); 122 123 130 public double currentProcessedDocsPerSec(); 131 132 138 public double processedDocsPerSec(); 139 140 146 public long processedKBPerSec(); 147 148 156 public int currentProcessedKBPerSec(); 157 158 163 public int activeThreadCount(); 164 165 175 public long successfullyFetchedCount(); 176 177 181 public long totalCount(); 182 183 public float congestionRatio(); 184 public long deepestUri(); 185 public long averageDepth(); 186 187 201 public Iterator getSeedRecordsSortedByStatusCode(); 202 203 206 public String progressStatisticsLegend(); 207 208 211 public String getProgressStatisticsLine(); 212 213 216 public Map getProgressStatistics(); 217 } | Popular Tags |