org.rhq.enterprise.gui.legacy.action.resource.common.monitor
Class VisibilityPortalAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by org.rhq.enterprise.gui.legacy.action.BaseDispatchAction
              extended by org.rhq.enterprise.gui.legacy.action.resource.ResourceController
                  extended by org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.ResourceVisibilityPortalAction
                      extended by org.rhq.enterprise.gui.legacy.action.resource.common.monitor.VisibilityPortalAction

public class VisibilityPortalAction
extends ResourceVisibilityPortalAction

A BaseDispatchAction that sets up common monitor portals.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
VisibilityPortalAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward chartMultiMetricSingleResource(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Chart multiple metrics for a single resource.
 org.apache.struts.action.ActionForward chartSingleMetricMultiResource(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Chart a single metric for a multiple resources.
 org.apache.struts.action.ActionForward chartSingleMetricSingleResource(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Chart a single metric for a single resource.
 org.apache.struts.action.ActionForward compareMetrics(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 configureVisibility(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 currentHealth(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 editRange(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)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).
protected  Properties getKeyMethodMap()
          Provides the mapping from resource key to method name
 org.apache.struts.action.ActionForward metricMetadata(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 performance(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 resourceMetrics(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void setReturnPath(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping, Map params)
          This sets the return path for a ResourceAction by appending the type and resource id to the forward url.
 org.apache.struts.action.ActionForward showTraitHistory(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Show a page with the historic data of the selected trait.
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.resource.ResourceController
fetchReturnPathParams, setNavMapLocation, setResource, setResource, setReturnPath
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, dispatchMethod, getMethod, getMethodName, getParameter, unspecified
 
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

VisibilityPortalAction

public VisibilityPortalAction()
Method Detail

execute

public 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
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). Return an ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.

Overrides:
execute in class BaseDispatchAction
Parameters:
mapping - The ActionMapping used to select this instance
request - The HTTP request we are processing
response - The HTTP response we are creating
form - The optional ActionForm bean for this request (if any)
Returns:
Describes where and how control should be forwarded.
Throws:
Exception - if an error occurs

getKeyMethodMap

protected Properties getKeyMethodMap()
Description copied from class: BaseDispatchAction
Provides the mapping from resource key to method name

Specified by:
getKeyMethodMap in class BaseDispatchAction
Returns:
Resource key / method name map

currentHealth

public org.apache.struts.action.ActionForward currentHealth(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws Exception
Overrides:
currentHealth in class ResourceVisibilityPortalAction
Throws:
Exception

resourceMetrics

public org.apache.struts.action.ActionForward resourceMetrics(org.apache.struts.action.ActionMapping mapping,
                                                              org.apache.struts.action.ActionForm form,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response)
                                                       throws Exception
Overrides:
resourceMetrics in class ResourceVisibilityPortalAction
Throws:
Exception

performance

public org.apache.struts.action.ActionForward performance(org.apache.struts.action.ActionMapping mapping,
                                                          org.apache.struts.action.ActionForm form,
                                                          javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response)
                                                   throws Exception
Overrides:
performance in class ResourceVisibilityPortalAction
Throws:
Exception

editRange

public org.apache.struts.action.ActionForward editRange(org.apache.struts.action.ActionMapping mapping,
                                                        org.apache.struts.action.ActionForm form,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
                                                 throws Exception
Throws:
Exception

configureVisibility

public org.apache.struts.action.ActionForward configureVisibility(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Throws:
Exception

chartSingleMetricSingleResource

public org.apache.struts.action.ActionForward chartSingleMetricSingleResource(org.apache.struts.action.ActionMapping mapping,
                                                                              org.apache.struts.action.ActionForm form,
                                                                              javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)
                                                                       throws Exception
Chart a single metric for a single resource.

Throws:
Exception

chartSingleMetricMultiResource

public org.apache.struts.action.ActionForward chartSingleMetricMultiResource(org.apache.struts.action.ActionMapping mapping,
                                                                             org.apache.struts.action.ActionForm form,
                                                                             javax.servlet.http.HttpServletRequest request,
                                                                             javax.servlet.http.HttpServletResponse response)
                                                                      throws Exception
Chart a single metric for a multiple resources.

Throws:
Exception

chartMultiMetricSingleResource

public org.apache.struts.action.ActionForward chartMultiMetricSingleResource(org.apache.struts.action.ActionMapping mapping,
                                                                             org.apache.struts.action.ActionForm form,
                                                                             javax.servlet.http.HttpServletRequest request,
                                                                             javax.servlet.http.HttpServletResponse response)
                                                                      throws Exception
Chart multiple metrics for a single resource.

Throws:
Exception

showTraitHistory

public org.apache.struts.action.ActionForward showTraitHistory(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws Exception
Show a page with the historic data of the selected trait.

Throws:
Exception
See Also:
TraitHistoryFormPrepareAction

metricMetadata

public org.apache.struts.action.ActionForward metricMetadata(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
                                                      throws Exception
Throws:
Exception

compareMetrics

public org.apache.struts.action.ActionForward compareMetrics(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
                                                      throws Exception
Throws:
Exception

setReturnPath

protected void setReturnPath(javax.servlet.http.HttpServletRequest request,
                             org.apache.struts.action.ActionMapping mapping,
                             Map params)
                      throws Exception
This sets the return path for a ResourceAction by appending the type and resource id to the forward url.

Overrides:
setReturnPath in class ResourceController
Parameters:
request - The current controller's request.
mapping - The current controller's mapping that contains the input.
params - A Map of request parameters to add to the return path.
Throws:
ParameterNotFoundException - if the type or id are not found
javax.servlet.ServletException - If there is not input defined for this form
Exception


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