String post = fname.substring(extPos);
return pre + "_" + cnt + post;
}
public void handle(JmxSampleResult res) {
ChartWrapper jmxChart = jmxCharts.get(res.getJmxUri());
if (jmxChart == null) {
String[] label = new String[] { res.getMemType(), "Average" };
String yaTitle = "Kb";
String xaTitle = "time";
jmxChart = createChartWrapper(res.getJmxUri(), label, yaTitle, xaTitle);
jmxCharts.put(res.getJmxUri(), jmxChart);
}
jmxChart.putRawData(res.getTimeStamp(), Long.parseLong(res.getSamplerData()));
}