try {
return client.execute(get, jsonNodeHandler, context);
} catch (Exception e) {
throw new GraphiteReadException("Failed to read from Graphite", e);
} finally {
get.releaseConnection();
}
}
public byte[] getChart(String target, int width, int height, String from, String to, LegendState legendState, AxesState axesState) throws Exception {
return getChart(target, width, height, from, to, legendState, axesState, null, null);