org.rhq.plugins.jbossas5
Class JBossMessagingDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.jbossas5.ManagedComponentDiscoveryComponent<ApplicationServerComponent<?>>
      extended by org.rhq.plugins.jbossas5.JBossMessagingDiscoveryComponent
All Implemented Interfaces:
ResourceDiscoveryComponent<ApplicationServerComponent<?>>

public class JBossMessagingDiscoveryComponent
extends ManagedComponentDiscoveryComponent<ApplicationServerComponent<?>>

The ResourceDiscoveryComponent for the singleton JBoss Messaging ResourceType.

Author:
Ian Springer

Constructor Summary
JBossMessagingDiscoveryComponent()
           
 
Method Summary
 Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<ApplicationServerComponent<?>> discoveryContext)
           
protected  String getResourceName(org.jboss.managed.api.ManagedComponent component)
          Subclasses can override this method if they don't want to use the ManagedComponent name as the initial Resource name.
protected  String getResourceVersion(org.jboss.managed.api.ManagedComponent component)
          Subclasses can override this method if they want the discovered ManagedComponent to have a version.
 
Methods inherited from class org.rhq.plugins.jbossas5.ManagedComponentDiscoveryComponent
accept, getComponentType, getResourceKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossMessagingDiscoveryComponent

public JBossMessagingDiscoveryComponent()
Method Detail

discoverResources

public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<ApplicationServerComponent<?>> discoveryContext)
                                                 throws Exception
Specified by:
discoverResources in interface ResourceDiscoveryComponent<ApplicationServerComponent<?>>
Overrides:
discoverResources in class ManagedComponentDiscoveryComponent<ApplicationServerComponent<?>>
Throws:
Exception

getResourceName

protected String getResourceName(org.jboss.managed.api.ManagedComponent component)
Description copied from class: ManagedComponentDiscoveryComponent
Subclasses can override this method if they don't want to use the ManagedComponent name as the initial Resource name.

Overrides:
getResourceName in class ManagedComponentDiscoveryComponent<ApplicationServerComponent<?>>
Parameters:
component - the ManagedComponent being discovered
Returns:
the name to be assigned to the corresponding Resource

getResourceVersion

protected String getResourceVersion(org.jboss.managed.api.ManagedComponent component)
Description copied from class: ManagedComponentDiscoveryComponent
Subclasses can override this method if they want the discovered ManagedComponent to have a version.

Overrides:
getResourceVersion in class ManagedComponentDiscoveryComponent<ApplicationServerComponent<?>>
Parameters:
component - the ManagedComponent being discovered
Returns:
the version to be assigned to the corresponding Resource


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