org.rhq.plugins.modcluster
Class WebappContextDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.modcluster.WebappContextDiscoveryComponent
All Implemented Interfaces:
ResourceDiscoveryComponent<MBeanResourceComponent<?>>

public class WebappContextDiscoveryComponent
extends Object
implements ResourceDiscoveryComponent<MBeanResourceComponent<?>>

Discovers mod_cluster contexts from the proxyInfo mbean property.

Author:
Stefan Negrea

Constructor Summary
WebappContextDiscoveryComponent()
           
 
Method Summary
 Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<MBeanResourceComponent<?>> context)
           
protected  org.mc4j.ems.connection.bean.EmsBean loadBean(MBeanResourceComponent<?> context, String objectName)
          Loads the bean with the given object name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappContextDiscoveryComponent

public WebappContextDiscoveryComponent()
Method Detail

discoverResources

public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<MBeanResourceComponent<?>> context)
Specified by:
discoverResources in interface ResourceDiscoveryComponent<MBeanResourceComponent<?>>

loadBean

protected org.mc4j.ems.connection.bean.EmsBean loadBean(MBeanResourceComponent<?> context,
                                                        String objectName)
Loads the bean with the given object name. Subclasses are free to override this method in order to load the bean.

Parameters:
objectName - the name of the bean to load
Returns:
the bean that is loaded


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