|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.resource.metadata.ResourceMetadataManagerBean
public class ResourceMetadataManagerBean
This class manages the metadata for resources. Plugins are registered against this bean so that their metadata can be pulled out and stored as necessary.
| Constructor Summary | |
|---|---|
ResourceMetadataManagerBean()
|
|
| Method Summary | |
|---|---|
Plugin |
getPlugin(java.lang.String name)
Returns the information on the given plugin as found in the database. |
java.util.List<Plugin> |
getPlugins()
Returns the information on all agent plugins as found in the database. |
java.util.List<Plugin> |
getPluginsByResourceTypeAndCategory(java.lang.String resourceTypeName,
ResourceCategory resourceCategory)
|
void |
registerPlugin(Subject whoami,
Plugin plugin,
PluginDescriptor pluginDescriptor,
java.io.File pluginFile,
boolean forceUpdate)
For server-side registration of plugin archives. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceMetadataManagerBean()
| Method Detail |
|---|
public Plugin getPlugin(java.lang.String name)
getPlugin in interface ResourceMetadataManagerLocalname - the name of a plugin
javax.persistence.NoResultException - when no plugin with that name existspublic java.util.List<Plugin> getPlugins()
getPlugins in interface ResourceMetadataManagerLocal
public java.util.List<Plugin> getPluginsByResourceTypeAndCategory(java.lang.String resourceTypeName,
ResourceCategory resourceCategory)
getPluginsByResourceTypeAndCategory in interface ResourceMetadataManagerLocal
public void registerPlugin(Subject whoami,
Plugin plugin,
PluginDescriptor pluginDescriptor,
java.io.File pluginFile,
boolean forceUpdate)
throws java.lang.Exception
ResourceMetadataManagerLocalpluginFile, and the plugin is deemed to be new or updated, the content
of the file will be streamed to the database. Note that if you provide a non-null file, you must ensure
its MD5 matches that of the file (i.e. this method will not attempt to recompute the file's MD5, it will assume
the caller has already done that and provided the proper MD5 in plugin).
registerPlugin in interface ResourceMetadataManagerLocalplugin - The plugin object being deployedpluginDescriptor - The plugin descriptor filepluginFile - the actual plugin file whose content will be stored in the database (will be ignored if null)forceUpdate - if true, the plugin's types will be updated, even if the plugin hasn't changed since
the last time it was registered
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||