|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--spider.crawl.Statistics
maintain statistics related with crawl 1. no of timeouts 2. no of redirections 3. no of parsing errors 4. time since start 5. number of threads 6. size of frontier 7. Memory in use 8. Available memory 9. no of pages fetched with 200 OK 10. no of pages crawled the statistics can be started as a thread and it prints out a file every t minutes
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Statistics()
|
|
Statistics(long start,
History h,
Frontier front)
|
Method Summary | |
void |
addOkay(int k)
add to noOkay |
void |
addTimeouts(int k)
add to noTimeouts |
void |
foundInCache(int k)
add to noFoundInCache |
void |
notFound(int k)
add to noNotFound |
void |
pagesCrawled(long p)
pages crawled |
void |
parseErrors(int k)
add to noParseErrors |
void |
run()
|
void |
setFile(java.lang.String file)
Sets the file. |
void |
setStop(boolean stop)
Sets the stop. |
void |
toFile()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Statistics(long start, History h, Frontier front)
public Statistics()
Method Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void toFile()
public void setFile(java.lang.String file)
file
- The file to setpublic void setStop(boolean stop)
stop
- The stop to setpublic void addTimeouts(int k)
public void addOkay(int k)
public void notFound(int k)
public void parseErrors(int k)
public void foundInCache(int k)
public void pagesCrawled(long p)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |