public abstract class CurrentHealthChartServlet extends VerticalChartServlet
CurrentHealth chart servlet. The default imageWidth is 250 pixels. The default
imageHeight is 130 pixels.
by default, this servlet will display an 8 column chart for the past 8 hours at 1 hour intervals based on the
metric category returned by the .getMetricCategory()
Additional parameters are as follows (any required parameters are in italics):
| key | value |
|---|---|
| eid | <string or string[]> |
| ctype | <integer> |
| Modifier and Type | Field and Description |
|---|---|
static int |
IMAGE_HEIGHT_DEFAULT
Default image height.
|
static int |
IMAGE_WIDTH_DEFAULT
Default image width.
|
protected static long |
INTERVAL
Interval for metrics.
|
COLLECTION_TYPE_PARAMBASELINE_PARAM, HIGHRANGE_PARAM, LOWRANGE_PARAM, MEASUREMENT_UNITS_PARAM, SHOW_AVERAGE_PARAM, SHOW_BASELINE_PARAM, SHOW_HIGHRANGE_PARAM, SHOW_LOW_PARAM, SHOW_LOWRANGE_PARAM, SHOW_PEAK_PARAM, SHOW_VALUES_PARAM, unitsIMAGE_FORMAT_JPEG, IMAGE_FORMAT_PARAM, IMAGE_FORMAT_PNG, IMAGE_HEIGHT_PARAM, IMAGE_WIDTH_PARAM| Constructor and Description |
|---|
CurrentHealthChartServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDefaultImageHeight()
Return the default
imageHeight. |
protected int |
getDefaultImageWidth()
Return the default
imageWidth. |
protected abstract String |
getMetricCategory()
Return the corresponding measurement category.
|
protected void |
initializeChart(Chart chart)
Initialize the chart.
|
protected void |
plotData(javax.servlet.http.HttpServletRequest request,
Chart chart)
This method will be called automatically by the ChartServlet.
|
getDefaultCollectionType, getTrendForCollectionType, parseParameterscreateChart, createImage, getDefaultShowAverage, getDefaultShowBaseline, getDefaultShowHighRange, getDefaultShowLow, getDefaultShowLowRange, getDefaultShowPeak, getDefaultShowValues, getShowAvg, getShowLow, getShowPeak, renderJpegImage, renderPngImagedoGet, getDefaultImageFormat, getImageFormat, getImageHeight, getImageWidth, initinvalidParamErr, invalidParamErr, invalidParamWarn, invalidParamWarn, invalidParamWarn, invalidParamWarn, invalidParamWarn, parseBooleanParameter, parseDoubleParameter, parseEnumParameter, parseIntParameter, parseLongParameter, parseRequiredBooleanParameter, parseRequiredDoubleParameter, parseRequiredIntParameter, parseRequiredLongParameter, parseRequiredStringParameter, parseRequiredStringParameter, parseStringParameter, parseStringParameter, requiredParamErrdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected static final long INTERVAL
public static final int IMAGE_WIDTH_DEFAULT
public static final int IMAGE_HEIGHT_DEFAULT
protected int getDefaultImageWidth()
imageWidth.getDefaultImageWidth in class ChartServletprotected int getDefaultImageHeight()
imageHeight.getDefaultImageHeight in class ChartServletprotected abstract String getMetricCategory()
org.rhq.enterprise.server.legacy.measurement.MeasurementConstants.CAT_AVAILABILITY
or org.rhq.enterprise.server.legacy.measurement.MeasurementConstants.CAT_THROUGHPUT
or org.rhq.enterprise.server.legacy.measurement.MeasurementConstants.CAT_PERFORMANCE
or org.rhq.enterprise.server.legacy.measurement.MeasurementConstants.CAT_UTILIZATIONprotected void initializeChart(Chart chart)
VerticalChartServletinitializeChart in class VerticalChartServletchart - the chartprotected void plotData(javax.servlet.http.HttpServletRequest request,
Chart chart)
throws javax.servlet.ServletException
plotData in class ChartServletrequest - the HTTP requestjavax.servlet.ServletExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.