|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceMetadataManagerLocal
Provides functionality surrounding agent plugins and their resource metadata.
| Method Summary | |
|---|---|
Plugin |
getPlugin(java.lang.String name)
Given the plugin name, will return that plugin. |
java.util.List<Plugin> |
getPlugins()
Returns the list of all plugins deployed in the server. |
java.util.List<Plugin> |
getPluginsByResourceTypeAndCategory(java.lang.String resourceTypeName,
ResourceCategory resourceCategory)
|
void |
registerPlugin(Subject whoami,
Plugin plugin,
PluginDescriptor metadata,
java.io.File pluginFile,
boolean forceUpdate)
For server-side registration of plugin archives. |
| Method Detail |
|---|
void registerPlugin(Subject whoami,
Plugin plugin,
PluginDescriptor metadata,
java.io.File pluginFile,
boolean forceUpdate)
throws java.lang.Exception
pluginFile, 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).
plugin - The plugin object being deployedmetadata - 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.Exceptionjava.util.List<Plugin> getPlugins()
java.util.List<Plugin> getPluginsByResourceTypeAndCategory(java.lang.String resourceTypeName,
ResourceCategory resourceCategory)
Plugin getPlugin(java.lang.String name)
name - name of plugin as defined in plugin descriptor.
javax.persistence.NoResultException - when no plugin with that name exists
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||