Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.ui.action.resource.platform.monitor.visibility
Class RootInventoryHelper

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

public class RootInventoryHelper
extends InventoryHelper

A class that provides an implementation of some auto-group monitoring functions for auto-groups of platforms. We call it "root" because there is no parent resource(s) in this case.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.hyperic.hq.ui.action.resource.common.monitor.visibility.InventoryHelper
entityId
 
Constructor Summary
RootInventoryHelper()
           
 
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 platform type from the Bizapp.
 java.util.List getChildResourceTypes(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, AppdefResourceValue resource)
          Get the set of server types representing a platform's servers.
 
Methods inherited from class org.hyperic.hq.ui.action.resource.common.monitor.visibility.InventoryHelper
getHelper, getSelectedChildId, getSelectedChildId, getSelectedChildType, isResourceConfigured, selectDefaultSubtab, showPerformanceSubtabs
 
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

RootInventoryHelper

public RootInventoryHelper()
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 server types representing a platform's servers.

Specified by:
getChildResourceTypes in class InventoryHelper
Parameters:
request - the http request
ctx - the servlet context
resource - the platform
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 platform type from the Bizapp.

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 a Map of counts keyed by child resource type.

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

Hyperic HQ Plugin API v. 4.4.0.2

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