Java Reference
In-Depth Information
* Thrown if the depth could not be found.
*/
public int getDepth(URL url) throws WorkloadException;
/**
* Get the source page that contains the specified URL.
*
* @param url
* The URL to seek the source for.
* @return The source of the specified URL.
* @throws WorkloadException
* Thrown if the source of the specified URL
* could not be found.
*/
public URL getSource(URL url) throws WorkloadException;
/**
* Get a new URL to work on. Wait if there are no URL's
* currently available. Return null if done with the
* current host. The URL being returned will be marked as
* in progress.
*
* @return The next URL to work on,
* @throws WorkloadException
* Thrown if the next URL could not be obtained.
*/
public URL getWork() throws WorkloadException;
/**
* Setup this workload manager for the specified spider.
*
* @param spider
* The spider using this workload manager.
* @throws WorkloadException
* Thrown if there is an error setting up the
* workload manager.
*/
public void init(Spider spider) throws WorkloadException;
/**
* Mark the specified URL as error.
*
* @param url
* The URL that had an error.
* @throws WorkloadException
* Thrown if the specified URL could not be
Search WWH ::




Custom Search