Università degli Studi di Napoli Federico II - Scope
Università degli Studi di Napoli Federico II - Scope
Università degli Studi di Napoli Federico II - Scope
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
String.valueOf(infoJobVO[2]), batch.Nome_Sito);<br />
} // fine FOR VO sulle VO<br />
}<br />
}<br />
private void inserisciMisurazioniFuoriGruppo_DB(ManagerParser batch) {<br />
long epoch = System.currentTimeMillis() / 1000;<br />
Timestamp timestamp = new Timestamp(epoch * 1000);<br />
int idSched = DBScheduler.getAdmin(batch.nomeScheduler, batch.Nome_Sito);<br />
// Recupera le info dalla struttura "fuoriGruppo" costruita dalla classe<br />
ParserScheduler<br />
ResultSet utenti = ConnectionPool.inviaQuery("select IdUtente, nome, IdCoda,<br />
idScheduler " +<br />
" from utente where idscheduler=" + idSched);<br />
try {<br />
if (utenti != null) {<br />
if (batch.nomeScheduler.compareTo("LSF") == 0) {<br />
while (utenti.next()) {<br />
int idUt = utenti.getInt("IdUtente");<br />
int idCod = utenti.getInt("IdCoda");<br />
ResultSet rs = ConnectionPool.inviaQuery("select p.statusPBS,<br />
p.numPBS, p.statusLSF, p.numLSF, " +<br />
" p.idutente, p.idqueue, p.job_name, " +<br />
" p.jobid_scheduler, p.nomeusers, c.queue_name from " +<br />
" (select j.statusPBS, count(j.statusPBS) as numPBS, j.statusLSF,<br />
count(j.statusLSF) as numLSF," +<br />
" j.idutente, j.idqueue, j.job_name, " +<br />
+ idUt + "'" +<br />
" jobid_scheduler, nomeusers FROM job as j where j.idutente='"<br />
Tommaso Foglia 961/147 Pagina 140 <strong>di</strong> 150