public interface PluginManagerLocal extends PluginManagerRemote
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeDeletedPluginsBy(int serverId)
The provided server acknowledges the deletion of all plugins marked as deleted by calling this method.
|
List<org.rhq.core.domain.plugin.Plugin> |
findAllDeletedPlugins()
Do not use this method directly.
|
List<org.rhq.core.domain.plugin.Plugin> |
getAllPluginsById(List<Integer> pluginIds)
Returns a list of plugins with the specified ids.
|
List<org.rhq.core.domain.plugin.CannedGroupExpression> |
getCannedGroupExpressions() |
List<org.rhq.core.domain.plugin.Plugin> |
getInstalledPlugins()
Returns the list of all plugins deployed in the server.
|
org.rhq.core.domain.plugin.Plugin |
getPlugin(String name)
Given the plugin name, will return that plugin.
|
File |
getPluginDropboxDirectory()
Returns the directory where plugins can be dropped for inclusion into the system.
|
List<org.rhq.core.domain.plugin.Plugin> |
getPlugins()
Deprecated.
the deleted plugins will disappear from the database on their own accord when it's safe to do so.
|
List<org.rhq.core.domain.plugin.Plugin> |
getPluginsByResourceTypeAndCategory(String resourceTypeName,
org.rhq.core.domain.resource.ResourceCategory resourceCategory) |
List<PluginStats> |
getPluginStats(List<Integer> pluginIds) |
boolean |
installPluginJar(org.rhq.core.domain.plugin.Plugin newPlugin,
PluginDescriptor pluginDescriptor,
File pluginFile)
Exists only for transactional boundary reasons.
|
boolean |
isReadyForPurge(org.rhq.core.domain.plugin.Plugin plugin)
Not to be used outside of
PurgePluginsJob. |
void |
markPluginsDeleted(org.rhq.core.domain.auth.Subject subject,
List<org.rhq.core.domain.plugin.Plugin> plugins)
Not to be called outside of the PluginManagerBean implementation.
|
void |
purgePlugins(List<org.rhq.core.domain.plugin.Plugin> plugins)
Permanently deletes the plugins from the database.
|
void |
registerPlugin(org.rhq.core.domain.plugin.Plugin plugin,
PluginDescriptor metadata,
File pluginFile,
boolean forceUpdate)
For server-side registration of plugin archives.
|
void |
setPluginEnabledFlag(org.rhq.core.domain.auth.Subject subject,
int pluginId,
boolean enabled)
Sets if a plugin is enabled or not.
|
deletePlugins, deployUsingBytes, deployUsingContentHandle, disablePlugins, enablePlugins, findPluginsByCriteria, isPluginUpdateOnAgentsFinished, schedulePluginUpdateOnAgents, updateorg.rhq.core.domain.plugin.Plugin getPlugin(String name)
name - of plugin as defined in plugin descriptor.@Deprecated List<org.rhq.core.domain.plugin.Plugin> getPlugins()
use getInstalledPlugins method insteadList<org.rhq.core.domain.plugin.Plugin> getInstalledPlugins()
List<org.rhq.core.domain.plugin.Plugin> findAllDeletedPlugins()
AgentPluginScanner and
PurgePluginsJob.List<org.rhq.core.domain.plugin.Plugin> getAllPluginsById(List<Integer> pluginIds)
pluginIds - The ids of the plugins to fetchList<org.rhq.core.domain.plugin.Plugin> getPluginsByResourceTypeAndCategory(String resourceTypeName, org.rhq.core.domain.resource.ResourceCategory resourceCategory)
List<PluginStats> getPluginStats(List<Integer> pluginIds)
void markPluginsDeleted(org.rhq.core.domain.auth.Subject subject,
List<org.rhq.core.domain.plugin.Plugin> plugins)
throws Exception
Exceptionboolean isReadyForPurge(org.rhq.core.domain.plugin.Plugin plugin)
PurgePluginsJob. You can just use
the PluginManagerRemote.deletePlugins(org.rhq.core.domain.auth.Subject, java.util.List) method and it will take care of
the rest.plugin - The plugin to checkvoid purgePlugins(List<org.rhq.core.domain.plugin.Plugin> plugins)
PurgePluginsJob.plugins - The plugins to remove from the database.void setPluginEnabledFlag(org.rhq.core.domain.auth.Subject subject,
int pluginId,
boolean enabled)
throws Exception
Exceptionvoid registerPlugin(org.rhq.core.domain.plugin.Plugin plugin,
PluginDescriptor metadata,
File pluginFile,
boolean forceUpdate)
throws 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 sinceExceptionboolean installPluginJar(org.rhq.core.domain.plugin.Plugin newPlugin,
PluginDescriptor pluginDescriptor,
File pluginFile)
throws Exception
ExceptionFile getPluginDropboxDirectory()
void acknowledgeDeletedPluginsBy(int serverId)
AgentPluginScanner.serverId - the id of the server that wants to acknowledge that it has seen the deleted pluginsList<org.rhq.core.domain.plugin.CannedGroupExpression> getCannedGroupExpressions()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.