Java Reference
In-Depth Information
/**
* Move on to process the next host. This should only be
* called after getWork returns null. Because the
* MemoryWorkloadManager is single host only, this
* function simply 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() {
return null;
}
/**
* 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 {
throw (new WorkloadException(
"Memory based workload managers can not resume."));
}
/**
* If there is currently no work available, then wait
* until a new URL has been added to the workload. Because
* the MemoryWorkloadManager uses a blocking queue, this
* method is not needed. It is implemented to support the
* interface.
*
* @param time
* The amount of time to wait.
* @param length
* What tiem unit is being used.
*/
public void waitForWork(int time, TimeUnit length) {
}
/**
* Return true if there are no more workload units.
*
Search WWH ::




Custom Search