spider.crawl
Class ActiveThreads

java.lang.Object
  |
  +--spider.crawl.ActiveThreads

public class ActiveThreads
extends java.lang.Object

keeping track of crawler threads so that they can be stopped when none of them have further URLs to crawl

Author:
Gautam Pant

Constructor Summary
ActiveThreads()
           
 
Method Summary
 int add()
          add to active thread count
 int get()
          get the latest active threads count
 int subtract()
          subtract from the current active threads count
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveThreads

public ActiveThreads()
Method Detail

add

public int add()
add to active thread count


subtract

public int subtract()
subtract from the current active threads count


get

public int get()
get the latest active threads count