}
public void add(SampleResult res) {
if (res instanceof JmxSampleResult) {
log.warn("INVOKED: " + res);
JmxSampleResult result = (JmxSampleResult) res;
String uri = result.getJmxUri();
JmxGraphPanel graphPanel = graphTable.get(uri);
if (graphPanel == null) {
graphPanel = addGraph(result.getMemType(), uri);
graphTable.put(uri, graphPanel);
}
ChartWrapper graph = graphPanel.getGraph();
graph.setXAxisScalingFactor(1000);
graph.putRawData(result.getStartTime(), result.getValue());
renderChart(uri, graphPanel);
}
}