org.rhq.enterprise.gui.common.servlet
Class HighLowChartServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.rhq.enterprise.gui.common.servlet.ParameterizedServlet
org.rhq.enterprise.gui.common.servlet.ImageServlet
org.rhq.enterprise.gui.common.servlet.ChartServlet
org.rhq.enterprise.gui.common.servlet.HighLowChartServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, javax.servlet.SingleThreadModel
public class HighLowChartServlet
- extends ChartServlet
- implements javax.servlet.SingleThreadModel
Display a high-low chart. This groks three kinds of input:
- schedId: show the data for a single schedule denoted by schedid
- groupId + definitionId: show data for the passed definitionId and the given compatible group
- id + childTypeId + definitionId: show data for the passed definition of the autogroup id/resourceTypeId
- Author:
- Ian Springer, Heiko W. Rupp
- See Also:
- Serialized Form
| Fields inherited from class org.rhq.enterprise.gui.common.servlet.ChartServlet |
BASELINE_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, units |
|
Method Summary |
protected Chart |
createChart()
Create and return the chart. |
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. |
| Methods inherited from class org.rhq.enterprise.gui.common.servlet.ChartServlet |
createImage, getDefaultImageHeight, getDefaultImageWidth, getDefaultShowAverage, getDefaultShowBaseline, getDefaultShowHighRange, getDefaultShowLow, getDefaultShowLowRange, getDefaultShowPeak, getDefaultShowValues, getShowAvg, getShowLow, getShowPeak, renderJpegImage, renderPngImage |
| Methods inherited from class org.rhq.enterprise.gui.common.servlet.ParameterizedServlet |
invalidParamErr, invalidParamErr, invalidParamWarn, invalidParamWarn, invalidParamWarn, invalidParamWarn, invalidParamWarn, parseBooleanParameter, parseDoubleParameter, parseEnumParameter, parseIntParameter, parseLongParameter, parseRequiredBooleanParameter, parseRequiredDoubleParameter, parseRequiredIntParameter, parseRequiredLongParameter, parseRequiredStringParameter, parseRequiredStringParameter, parseStringParameter, parseStringParameter, requiredParamErr |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HighLowChartServlet
public HighLowChartServlet()
createChart
protected Chart createChart()
- Description copied from class:
ChartServlet
- Create and return the chart. This method will be called after the parameters have been parsed.
- Specified by:
createChart in class ChartServlet
- Returns:
- the newly created chart
initializeChart
protected void initializeChart(Chart chart)
- Initialize the chart. This method will be called after the parameters have been parsed and the chart has been
created.
- Overrides:
initializeChart in class ChartServlet
- Parameters:
chart - the chart
parseParameters
protected void parseParameters(javax.servlet.http.HttpServletRequest request)
- Description copied from class:
ChartServlet
- This method will be called automatically by the ChartServlet. It should handle the parsing and error-checking of
any specific parameters for the chart being rendered.
- Overrides:
parseParameters in class ChartServlet
- Parameters:
request - the HTTP request object
plotData
protected void plotData(javax.servlet.http.HttpServletRequest request,
Chart chart)
throws javax.servlet.ServletException
- Description copied from class:
ChartServlet
- This method will be called automatically by the ChartServlet. It should handle adding data to the chart, setting
up the X and Y axis labels, etc.
- Specified by:
plotData in class ChartServlet
- Parameters:
request - the HTTP request
- Throws:
javax.servlet.ServletException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.