public Object produceDataset(Map params) throws DatasetProduceException { TimeSeriesCollection col = new TimeSeriesCollection(); try { //Logger.getAnonymousLogger().log(Level.INFO, "fgsmsWEB debug, size" + params.size()); GetProcessPerformanceLogsByRangeResponseMsg res = (GetProcessPerformanceLogsByRangeResponseMsg) params.get("fgsms.data"); if (res != null && res.getProcessData() != null && !res.getProcessData().isEmpty()) { TimeSeries s = new TimeSeries("Memory (bytes)", org.jfree.data.time.Millisecond.class); for (int i = 0; i < res.getProcessData().size(); i++) { Millisecond m = new Millisecond(res.getProcessData().get(i).getTimestamp().getTime()); // TimeSeriesDataItem t = new TimeSeriesDataItem(m, // recordset.stuff.get(i).data.get(k).ResponseTime); // s.add(t); if (res.getProcessData().get(i).getBytesusedMemory()!=null) s.addOrUpdate(m, res.getProcessData().get(i).getBytesusedMemory()); } col.addSeries(s); } } catch (Exception ex) { LogHelper.getLog().log(Level.ERROR, "ProcessPerfLogsOverTimeMem produce chart data " + ex.getLocalizedMessage()); } return col; }
+ "VALUES (?, ?, ?, ?, ?, ?, ?, ?);"); com.setString(1, Utility.truncate(req.getProcessData().get(i).getUri(), MAXTEXT)); if (req.getProcessData().get(i).getBytesusedMemory() == null) { com.setNull(2, java.sql.Types.BIGINT); } else { com.setLong(2, req.getProcessData().get(i).getBytesusedMemory().longValue());