public class MetricChartServlet extends VerticalChartServlet
Extends ChartServlet to graph one or more metrics. By default, showPeak, showHighRange,
showValues, showAverage, showLowRange, showLow and
showBaseline are all true.
Additional parameters are as follows (any required parameters are in italics):
| key | value |
|---|---|
| chartDataKey | <string> |
| showEvents | (false | true) |
The chartDataKey will be used to retrieve the chart data from the session. Once it is pulled, it will
be removed from the session.
| Modifier and Type | Field and Description |
|---|---|
static String |
CHART_DATA_KEY_PARAM
Request parameter for the chart data key session attribute.
|
static String |
SHOW_EVENTS_PARAM
Request parameter for whether or not to show control actions.
|
COLLECTION_TYPE_PARAMBASELINE_PARAM, HIGHRANGE_PARAM, IMAGE_HEIGHT_DEFAULT, IMAGE_WIDTH_DEFAULT, 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 |
|---|
MetricChartServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected Chart |
createChart()
Create and return the chart.
|
protected boolean |
getDefaultShowAverage()
Return the default
showAverage. |
protected boolean |
getDefaultShowBaseline()
Return the default
showBaseline. |
protected boolean |
getDefaultShowEvents()
Return the default
showEvents. |
protected boolean |
getDefaultShowHighRange()
Return the default
showHighRange. |
protected boolean |
getDefaultShowLow()
Return the default
showLow. |
protected boolean |
getDefaultShowLowRange()
Return the default
showLowRange. |
protected boolean |
getDefaultShowPeak()
Return the default
showPeak. |
protected boolean |
getDefaultShowValues()
Return the default
showValues. |
protected void |
initializeChart(Chart chart)
Initialize the chart.
|
protected void |
parseParameters(javax.servlet.http.HttpServletRequest request)
This method will be called automatically by the ChartServlet.
|
protected void |
plotData(javax.servlet.http.HttpServletRequest request,
Chart chart)
This method will be called automatically by the ChartServlet.
|
getDefaultCollectionType, getTrendForCollectionTypecreateImage, getDefaultImageHeight, getDefaultImageWidth, 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, servicepublic static final String CHART_DATA_KEY_PARAM
public static final String SHOW_EVENTS_PARAM
protected void parseParameters(javax.servlet.http.HttpServletRequest request)
parseParameters in class VerticalChartServletrequest - the HTTP request objectprotected Chart createChart()
createChart in class ChartServletprotected void initializeChart(Chart chart)
initializeChart 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.ServletExceptionprotected boolean getDefaultShowPeak()
showPeak.getDefaultShowPeak in class ChartServletprotected boolean getDefaultShowHighRange()
showHighRange.getDefaultShowHighRange in class ChartServletprotected boolean getDefaultShowValues()
showValues.getDefaultShowValues in class ChartServletprotected boolean getDefaultShowAverage()
showAverage.getDefaultShowAverage in class ChartServletprotected boolean getDefaultShowLowRange()
showLowRange.getDefaultShowLowRange in class ChartServletprotected boolean getDefaultShowLow()
showLow.getDefaultShowLow in class ChartServletprotected boolean getDefaultShowBaseline()
showBaseline.getDefaultShowBaseline in class ChartServletprotected boolean getDefaultShowEvents()
showEvents.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.