public class PluginMetadataManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.rhq.core.domain.resource.ResourceType |
TEST_PLATFORM_TYPE |
| Constructor and Description |
|---|
PluginMetadataManager() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.resource.ResourceType |
addTestPlatformType()
Adds a platform resource type to represent an "anonymous" platform.
|
PluginDependencyGraph |
buildDependencyGraph()
Builds the dependency graph using all known descriptors.
|
Set<org.rhq.core.domain.resource.ResourceType> |
getAllTypes() |
String |
getComponentClass(org.rhq.core.domain.resource.ResourceType resourceType) |
String |
getDiscoveryClass(org.rhq.core.domain.resource.ResourceType resourceType) |
Map<String,PluginDescriptor> |
getEmbeddedExtensions(String parentPlugin)
Returns a map of plugins and their descriptors where those plugins are child extensions of the given
parent plugin.
|
PluginDescriptor |
getPluginDescriptor(String pluginName)
Get the plugin descriptor for the named plugin.
|
String |
getPluginLifecycleListenerClass(String pluginName) |
Set<String> |
getPluginNames() |
Set<org.rhq.core.domain.resource.ResourceType> |
getRootTypes() |
org.rhq.core.domain.resource.ResourceType |
getType(org.rhq.core.domain.resource.ResourceType resourceType) |
org.rhq.core.domain.resource.ResourceType |
getType(String resourceTypeName,
String pluginName)
Returns the Resource type with the specified name and plugin, or null if no such Resource type exists.
|
Set<org.rhq.core.domain.resource.ResourceType> |
getTypesForCategory(org.rhq.core.domain.resource.ResourceCategory category)
Return the Resource types applicable for a category
|
boolean |
isDisabledOrIgnoredResourceType(org.rhq.core.domain.resource.ResourceType resourceType)
Returns true if the given resource type was either disabled at initialization time
or subsequently ignored.
|
Set<org.rhq.core.domain.resource.ResourceType> |
loadPlugin(PluginDescriptor pluginDescriptor)
Transforms the pluginDescriptor into domain object form and stores into this object's type system.
|
void |
setDisabledResourceTypes(List<String> disabledTypesAsStrings)
This will define resource types that will be disabled.
|
void |
setIgnoredResourceTypes(Collection<org.rhq.core.domain.resource.ResourceType> ignoredTypes)
This will set the given resource types to be the set of types that are to be ignored.
|
void |
storePluginDescriptor(PluginDescriptor descriptor)
This will simply squirrel away the given plugin descriptor for later retrieval
via
getPluginDescriptor(String). |
public static final org.rhq.core.domain.resource.ResourceType TEST_PLATFORM_TYPE
public void storePluginDescriptor(PluginDescriptor descriptor)
getPluginDescriptor(String). Use this as a simple storage
mechanism for descriptors. Nothing is done with descriptor other than store it
in memory for later retrieval.descriptor - the descriptor to storepublic PluginDescriptor getPluginDescriptor(String pluginName)
storePluginDescriptor(PluginDescriptor), it will be used. If a new descriptor
hasn't been staged, but a previous descriptor was loaded and converted into types,
via loadPlugin(PluginDescriptor), it will be used.
If the descriptor cannot be found anywhere, returns null.pluginName - name of the plugin whose descriptor is to be returned.public org.rhq.core.domain.resource.ResourceType addTestPlatformType()
public String getDiscoveryClass(org.rhq.core.domain.resource.ResourceType resourceType) throws ResourceTypeNotEnabledException
ResourceTypeNotEnabledExceptionpublic String getComponentClass(org.rhq.core.domain.resource.ResourceType resourceType) throws ResourceTypeNotEnabledException
ResourceTypeNotEnabledExceptionpublic Set<org.rhq.core.domain.resource.ResourceType> loadPlugin(PluginDescriptor pluginDescriptor)
pluginDescriptor - the descriptor to transform@Nullable public org.rhq.core.domain.resource.ResourceType getType(String resourceTypeName, String pluginName)
resourceTypeName - the Resource type namepluginName - the name of the plugin that defines the Resource type@Nullable public org.rhq.core.domain.resource.ResourceType getType(org.rhq.core.domain.resource.ResourceType resourceType)
public Set<org.rhq.core.domain.resource.ResourceType> getTypesForCategory(org.rhq.core.domain.resource.ResourceCategory category)
category - ResourceCategory to look uppublic Set<org.rhq.core.domain.resource.ResourceType> getAllTypes()
public Set<org.rhq.core.domain.resource.ResourceType> getRootTypes()
public PluginDependencyGraph buildDependencyGraph()
public Map<String,PluginDescriptor> getEmbeddedExtensions(String parentPlugin)
loaded
and those that were merely stored.parentPlugin - the parent pluginpublic void setIgnoredResourceTypes(Collection<org.rhq.core.domain.resource.ResourceType> ignoredTypes)
ignoredTypes - all the types to now ignore - overrides any set of types that previously were ignoredpublic void setDisabledResourceTypes(List<String> disabledTypesAsStrings)
disabledTypesAsStrings - list of types, in the form "pluginName>parentType>childType"public boolean isDisabledOrIgnoredResourceType(org.rhq.core.domain.resource.ResourceType resourceType)
resourceType - the type to checkCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.