Java Reference
In-Depth Information
if (requery)
{
if (this.workResultSet != null)
{
this.workResultSet.close();
}
this.workResultSet = this.stmtGetWork.executeQuery(
Status.STATUS_WAITING, this.currentHostID);
if (!this.workResultSet.getResultSet().next())
{
return null;
}
}
int id = this.workResultSet.getResultSet().getInt(1);
String url = this.workResultSet.getResultSet().getString(2);
this.stmtGetWork2.execute(Status.STATUS_PROCESSING, id);
return new URL(url);
} catch (SQLException e)
{
throw (new WorkloadException(e));
} catch (MalformedURLException e)
{
throw (new WorkloadException(e));
}
}
/**
* Get the workload ID, given a URL.
*
* @param url
* The URL to look up.
* @param require
* Should an exception be thrown if the workload
* is not located.
* @return The ID of the workload.
* @throws WorkloadException
* Thrown if the host id is not found, and is
* required.
* @throws SQLException
* Thrown if a SQL error occurs.
*/
Search WWH ::




Custom Search