dbconnected = true;
}
if (dbconnected)
{
JDBReportRequest rr = new JDBReportRequest(getHostID(), getSessionID());
LinkedList<Long> repList = new LinkedList<Long>();
int noOfReports = 0;
while (true)
{
JWait.milliSec(500);
if (allDone)
{
if (dbconnected)
{
Common.hostList.getHost(hostID).disconnect(getSessionID());
}
return;
}
repList.clear();
repList = rr.getReportRequestIDs();
noOfReports = repList.size();
if (noOfReports > 0)
{
for (int x = 0; x < noOfReports; x++)
{
JWait.milliSec(100);
rr.setReportRequestID(repList.get(x));
rr.getReportRequestProperties();
String module = rr.getModuleID();
if (rr.getInvocationMode().equals("ParameterOnly"))
{
for (int y = 0; y < rr.getCopies(); y++)
{
rr.getParameters();
HashMap<String, Object> parameters = rr.getParameters();
parameters.put("p_copy", String.valueOf(y));
JLaunchReport.silentExceptions = true;
logger.debug("Starting report : "+module);
JLaunchReport.runReport(module, parameters, "",null, rr.getPrintQueue());
logger.debug("Finished report : "+module);
JLaunchReport.silentExceptions = false;
}
}
rr.delete();
}
}
}
}
}