public abstract class MetricsDisplayFormPrepareAction extends MetricsControlFormPrepareAction
Action that retrieves data from the BizApp to facilitate display of the various pages that provide
metrics summaries.| Modifier and Type | Field and Description |
|---|---|
protected int |
groupId |
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
MetricsDisplayFormPrepareAction() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Long begin,
Long end)
Retrieve data needed to display a Metrics Display Form.
|
protected abstract List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary> |
getMetrics(javax.servlet.http.HttpServletRequest request,
int[] resourceIds,
long filters,
String keyword,
Long begin,
Long end)
Get from the Bizapp the set of metric summaries for the specified entities that will be displayed on the page.
|
protected Boolean |
getShowBaseline()
Do we show the baseline column on this page? The default answer is no, but subclasses can specify otherwise.
|
protected Boolean |
getShowMetricSource()
Do we show the metric source column on this page? The default answer is no, but subclasses can specify otherwise.
|
protected Boolean |
getShowNumberCollecting()
Do we show the number collecting column on this page? The default answer is no, but subclasses can specify
otherwise.
|
prepareFormaddErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Long begin,
Long end)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
execute in class MetricsControlFormPrepareActionExceptionprotected Boolean getShowNumberCollecting()
protected Boolean getShowBaseline()
protected Boolean getShowMetricSource()
protected abstract List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary> getMetrics(javax.servlet.http.HttpServletRequest request, int[] resourceIds, long filters, String keyword, Long begin, Long end) throws Exception
Map keyed by metric category.request - the http requestresourceIds - the array of resource id of the currently viewed resource/groupbegin - the time (in milliseconds since the epoch) that begins the timeframe for which the metrics
are summarizedend - the time (in milliseconds since the epoch) that ends the timeframe for which the metrics are
summarizedExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.