|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.jbossas5.ManagedComponentDiscoveryComponent<P>
public class ManagedComponentDiscoveryComponent<P extends ProfileServiceComponent<?>>
Discovery component for ManagedComponents exposed by the JBoss AS 5.x Profile Service that will be represented as child Resources of the JBoss AS Resource.
| Constructor Summary | |
|---|---|
ManagedComponentDiscoveryComponent()
|
|
| Method Summary | |
|---|---|
protected boolean |
accept(ResourceDiscoveryContext<P> discoveryContext,
org.jboss.managed.api.ManagedComponent component)
This method is called during discoverResources(ResourceDiscoveryContext) to determine
whether given component that has been found in the management view by this component's configured
component type is applicable in the discovery context. |
Set<DiscoveredResourceDetails> |
discoverResources(ResourceDiscoveryContext<P> discoveryContext)
|
protected org.jboss.managed.api.ComponentType |
getComponentType(ResourceDiscoveryContext<P> discoveryContext)
|
protected String |
getResourceKey(org.jboss.managed.api.ManagedComponent component)
Return the unique resource key for the component. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedComponentDiscoveryComponent()
| Method Detail |
|---|
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<P> discoveryContext)
throws Exception
discoverResources in interface ResourceDiscoveryComponent<P extends ProfileServiceComponent<?>>Exceptionprotected org.jboss.managed.api.ComponentType getComponentType(ResourceDiscoveryContext<P> discoveryContext)
protected String getResourceName(org.jboss.managed.api.ManagedComponent component)
component - the ManagedComponent being discovered
protected String getResourceKey(org.jboss.managed.api.ManagedComponent component)
ManagedComponentComponent.getManagedComponent() method as well
because the return value of this method is used as the component name
(ManagedComponentComponent.getComponentName()).
component - the component to uniquely identify
protected String getResourceVersion(org.jboss.managed.api.ManagedComponent component)
component - the ManagedComponent being discovered
protected boolean accept(ResourceDiscoveryContext<P> discoveryContext,
org.jboss.managed.api.ManagedComponent component)
discoverResources(ResourceDiscoveryContext) to determine
whether given component that has been found in the management view by this component's configured
component type is applicable in the discovery context.
Because the Profile Service doesn't always provide the components in a hierarchy we present the resources we need this method to filter the components into their appropriate places.
This default implementation always returns true.
discoveryContext - the current discovery contextcomponent - the discovered component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||