org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility
Class ResourceMetricsFormPrepareAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.tiles.actions.TilesAction
          extended by org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.MetricsControlFormPrepareAction
              extended by org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.MetricsDisplayFormPrepareAction
                  extended by org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.ResourceMetricsFormPrepareAction

public class ResourceMetricsFormPrepareAction
extends MetricsDisplayFormPrepareAction

An Action that retrieves data from the backend to facilitate display of the Resource Metrics pages.

This is used for the "Metric Data" sub sub tab on the monioring pages.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.MetricsDisplayFormPrepareAction
groupId
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ResourceMetricsFormPrepareAction()
           
 
Method Summary
protected  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 entity that will be displayed on the page.
protected  Boolean getShowBaseline()
          Do we show the baseline column on this page? The answer is no (for now).
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.MetricsDisplayFormPrepareAction
execute, execute, getShowMetricSource, getShowNumberCollecting
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.MetricsControlFormPrepareAction
prepareForm
 
Methods inherited from class org.apache.struts.tiles.actions.TilesAction
execute
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

ResourceMetricsFormPrepareAction

public ResourceMetricsFormPrepareAction()
Method Detail

getShowBaseline

protected Boolean getShowBaseline()
Do we show the baseline column on this page? The answer is no (for now).

Overrides:
getShowBaseline in class MetricsDisplayFormPrepareAction

getMetrics

protected 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
Get from the Bizapp the set of metric summaries for the specified entity that will be displayed on the page. Returns a Map keyed by metric category.

Specified by:
getMetrics in class MetricsDisplayFormPrepareAction
Parameters:
request - the http request
resourceIds - the entity id of the currently viewed resource
begin - the time (in milliseconds since the epoch) that begins the timeframe for which the metrics are summarized
end - the time (in milliseconds since the epoch) that ends the timeframe for which the metrics are summarized
Returns:
Map keyed on the category (String), values are List's of MetricDisplaySummary beans
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.