Java Reference
In-Depth Information
this.currentHostID = hostID;
this.currentHost = strHost;
this.stmtSetHostStatus.execute(Status.STATUS_PROCESSING,
this.currentHostID);
}
// now add workload element
if (source != null)
{
int sourceID = getWorkloadID(source, true);
this.stmtAdd.execute(hostID, strURL,
Status.STATUS_WAITING, depth,
computeHash(url), sourceID);
} else
{
this.stmtAdd.execute(hostID, strURL,
Status.STATUS_WAITING, depth,
computeHash(url), 0);
}
this.workLatch.countDown();
}
} catch (InterruptedException e)
{
} catch (SQLException e)
{
throw (new WorkloadException(e));
} finally
{
this.addLock.release();
}
return result;
}
/**
* Clear the workload.
*
* @throws WorkloadException
* An error prevented the workload from being
* cleared.
*/
public void clear() throws WorkloadException
{
this.stmtClear.execute();
this.stmtClear2.execute();
Search WWH ::




Custom Search