03.01.2015 Views

Università degli Studi di Napoli Federico II - Scope

Università degli Studi di Napoli Federico II - Scope

Università degli Studi di Napoli Federico II - Scope

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

" and j.idqueue='" + idCod + "' group by statusPBS, statusLSF,<br />

j.idutente, j.idqueue) " +<br />

" as p join coda as c on p.idqueue=c.idqueue where<br />

c.idscheduler='" + idSched + "'");<br />

if (rs != null) {<br />

int r = 0;<br />

int w = 0;<br />

int q = 0;<br />

String nomeUt = null, coda = null;<br />

while (rs.next()) {<br />

nomeUt = rs.getString("nomeusers");<br />

coda = rs.getString("queue_name");<br />

String stat = rs.getString("statusLSF");<br />

if (stat.compareToIgnoreCase("R") == 0) {<br />

r = rs.getInt("numLSF");<br />

} else if (stat.compareToIgnoreCase("Q") == 0) {<br />

q = rs.getInt("numLSF");<br />

} else if (stat.compareToIgnoreCase("W") == 0) {<br />

w = rs.getInt("numLSF");<br />

}<br />

}<br />

int sumTot = r + w + q;<br />

DBOsservazioni.gruppoGiorno_inserisciOsservazioni(batch.nomeSche<br />

duler, timestamp, nomeUt, "", coda, String.valueOf(sumTot), String.valueOf(q),<br />

String.valueOf(r), String.valueOf(w), batch.Nome_Sito);<br />

}<br />

}<br />

} // IF batch system<br />

else {<br />

Tommaso Foglia 961/147 Pagina 141 <strong>di</strong> 150

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!