Java Reference
In-Depth Information
* not located.
* @return The id of the specified host name.
* @throws WorkloadException
* Thrown if the host id is not found, and is
* required.
* @throws SQLException
* Thrown if a SQL error occurs.
*/
private int getHostID(URL url, boolean require)
throws SQLException,
WorkloadException
{
String host = url.getHost().toLowerCase();
return getHostID(host, require);
}
/**
* Called internally to get a work unit. This function
* does not wait for work, rather it simply returns null.
*
* @return The next URL to process.
* @throws WorkloadException
* Thrown if unable to obtain a URL.
*/
private URL getWorkInternal() throws WorkloadException
{
if (this.currentHostID == -1)
{
throw new WorkloadException(
"Attempting to obtain work before adding first URL.");
}
try
{
boolean requery = false;
if (this.workResultSet == null)
{
requery = true;
} else
{
if (!this.workResultSet.getResultSet().next())
{
requery = true;
}
}
Search WWH ::




Custom Search