Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.ui.action.resource.service.monitor.visibility
Class ServiceInventoryHelper

java.lang.Object
  extended by org.hyperic.hq.ui.action.resource.common.monitor.visibility.InventoryHelper
      extended by org.hyperic.hq.ui.action.resource.service.monitor.visibility.ServiceInventoryHelper

public class ServiceInventoryHelper
extends InventoryHelper

A class that provides application-specific implementations of utility methods for common monitoring tasks.


Field Summary
 
Fields inherited from class org.hyperic.hq.ui.action.resource.common.monitor.visibility.InventoryHelper
entityId, log
 
Constructor Summary
ServiceInventoryHelper(AppdefEntityID entityId)
           
 
Method Summary
 java.util.Map getChildCounts(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, AppdefResourceValue resource)
          Get from the Bizapp the numbers of children of the given resource.
 AppdefResourceType getChildResourceType(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, AppdefEntityTypeID id)
          Get a child resource type from the Bizapp (returns null).
 java.util.List getChildResourceTypes(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, AppdefResourceValue resource)
          Get the set of child resource types representing a resource's child resources.
 boolean showPerformanceSubtabs()
          Return a boolean indicating that minisubtabs should not be shown.
 
Methods inherited from class org.hyperic.hq.ui.action.resource.common.monitor.visibility.InventoryHelper
getHelper, getSelectedChildId, getSelectedChildId, getSelectedChildType, isResourceConfigured, selectDefaultSubtab
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInventoryHelper

public ServiceInventoryHelper(AppdefEntityID entityId)
Method Detail

getChildResourceTypes

public java.util.List getChildResourceTypes(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.ServletContext ctx,
                                            AppdefResourceValue resource)
                                     throws PermissionException,
                                            AppdefEntityNotFoundException,
                                            java.rmi.RemoteException,
                                            SessionNotFoundException,
                                            SessionTimeoutException,
                                            javax.servlet.ServletException
Get the set of child resource types representing a resource's child resources.

Specified by:
getChildResourceTypes in class InventoryHelper
Parameters:
request - the http request
ctx - the servlet context
resource - the resource
Throws:
PermissionException
AppdefEntityNotFoundException
java.rmi.RemoteException
SessionNotFoundException
SessionTimeoutException
javax.servlet.ServletException

getChildResourceType

public AppdefResourceType getChildResourceType(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.ServletContext ctx,
                                               AppdefEntityTypeID id)
                                        throws PermissionException,
                                               AppdefEntityNotFoundException,
                                               java.rmi.RemoteException,
                                               SessionNotFoundException,
                                               SessionTimeoutException,
                                               javax.servlet.ServletException
Get a child resource type from the Bizapp (returns null).

Specified by:
getChildResourceType in class InventoryHelper
Parameters:
request - the http request
ctx - the servlet context
id - the id of the server type
Throws:
PermissionException
AppdefEntityNotFoundException
java.rmi.RemoteException
SessionNotFoundException
SessionTimeoutException
javax.servlet.ServletException

getChildCounts

public java.util.Map getChildCounts(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.ServletContext ctx,
                                    AppdefResourceValue resource)
                             throws PermissionException,
                                    AppdefEntityNotFoundException,
                                    java.rmi.RemoteException,
                                    SessionNotFoundException,
                                    SessionTimeoutException,
                                    javax.servlet.ServletException
Get from the Bizapp the numbers of children of the given resource. Returns null, since services have no children.

Specified by:
getChildCounts in class InventoryHelper
Parameters:
request - the http request
resource - the appdef resource whose children we are counting
Throws:
PermissionException
AppdefEntityNotFoundException
java.rmi.RemoteException
SessionNotFoundException
SessionTimeoutException
javax.servlet.ServletException

showPerformanceSubtabs

public boolean showPerformanceSubtabs()
Return a boolean indicating that minisubtabs should not be shown.

Overrides:
showPerformanceSubtabs in class InventoryHelper

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.