Java Reference
In-Depth Information
* marked.
*/
public void markError(URL url) throws WorkloadException;
/**
* Mark the specified URL as successfully processed.
*
* @param url
* The URL to mark as processed.
* @throws WorkloadException
* Thrown if the specified URL could not be
* marked.
*/
public void markProcessed(URL url) throws WorkloadException;
/**
* Move on to process the next host. This should only be
* called after getWork returns null.
*
* @return The name of the next host.
* @throws WorkloadException
* Thrown if the workload manager was unable to
* move to the next host.
*/
public String nextHost() throws WorkloadException;
/**
* Setup the workload so that it can be resumed from where
* the last spider left the workload.
*
* @throws WorkloadException
* Thrown if we were unable to resume the
* processing.
*/
public void resume() throws WorkloadException;
/**
* If there is currently no work available, then wait
* until a new URL has been added to the workload.
*
* @param time
* The amount of time to wait.
* @param length
* What time unit is being used.
*/
public void waitForWork(int time, TimeUnit length);
Search WWH ::




Custom Search