public interface PluginManagerRemote
Permission.MANAGE_SETTINGS permission.| Modifier and Type | Method and Description |
|---|---|
void |
deletePlugins(org.rhq.core.domain.auth.Subject subject,
List<Integer> pluginIds)
This method puts the plugin into a deleted state and removes the plugin JAR file from the file system and
schedules its eventual deletion from the database, too.
|
List<org.rhq.core.domain.plugin.Plugin> |
deployUsingBytes(org.rhq.core.domain.auth.Subject subject,
String pluginJarName,
byte[] pluginJarBytes)
Deploys a new agent plugin to RHQ asynchronously.
|
List<org.rhq.core.domain.plugin.Plugin> |
deployUsingContentHandle(org.rhq.core.domain.auth.Subject subject,
String pluginJarName,
String handle)
Deploys a new agent plugin to RHQ asynchronously using the content handle pointing to a previously uploaded file.
|
void |
disablePlugins(org.rhq.core.domain.auth.Subject subject,
List<Integer> pluginIds)
Disables plugins by ID.
|
void |
enablePlugins(org.rhq.core.domain.auth.Subject subject,
List<Integer> pluginIds)
Enables plugins by ID.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.plugin.Plugin> |
findPluginsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PluginCriteria criteria)
Returns a list of plugins by criteria.
|
boolean |
isPluginUpdateOnAgentsFinished(org.rhq.core.domain.auth.Subject subject,
String handle)
Use this method to check whether given scheduled plugin update on agents finished.
|
String |
schedulePluginUpdateOnAgents(org.rhq.core.domain.auth.Subject subject,
long delayInMilliseconds)
Instructs all the running and connected agents to update their plugins after a given delay.
|
void |
update(org.rhq.core.domain.auth.Subject subject)
Updates the plugins that might have been changed on the filesystem of the server.
|
void update(org.rhq.core.domain.auth.Subject subject)
throws Exception
subject - the authenticated userExceptionString schedulePluginUpdateOnAgents(org.rhq.core.domain.auth.Subject subject, long delayInMilliseconds) throws Exception
isPluginUpdateOnAgentsFinished(org.rhq.core.domain.auth.Subject, String) method using the supplied
handle.subject - the authenticated userdelayInMilliseconds - the number of milliseconds to wait before running the update on the agentsExceptionisPluginUpdateOnAgentsFinished(org.rhq.core.domain.auth.Subject, String)boolean isPluginUpdateOnAgentsFinished(org.rhq.core.domain.auth.Subject subject,
String handle)
subject - the authenticated userhandle - the handle of the scheduleschedulePluginUpdateOnAgents(org.rhq.core.domain.auth.Subject, long)List<org.rhq.core.domain.plugin.Plugin> deployUsingBytes(org.rhq.core.domain.auth.Subject subject, String pluginJarName, byte[] pluginJarBytes) throws Exception
deployUsingContentHandle(org.rhq.core.domain.auth.Subject, String, String) method is the preferred way
of doing this because it avoids having to keep the whole of the plugin jar in memory.
In another words, use this method with caution because it may require a large amount of memory.
This method returns after the plugin is deployed. Because there might be other plugins pending to be deployed
in the filesystem, this operation might result in more than just the single requested plugin being deployed.
This is why this method returns a list instead of a single plugin corresponding to the provided jar..subject - the authenticated userpluginJarName - the name of the jar file which should be used to store the plugin on the filesystempluginJarBytes - the bytes of the plugin jar fileException - on errorList<org.rhq.core.domain.plugin.Plugin> deployUsingContentHandle(org.rhq.core.domain.auth.Subject subject, String pluginJarName, String handle) throws Exception
subject - the authenticated userpluginJarName - the name of the jar file which should be used to store the plugin on the filesystemhandle - the handle to the uploaded fileException - on errorContentManagerRemote.createTemporaryContentHandle(),
ContentManagerRemote.uploadContentFragment(String, byte[], int, int)org.rhq.core.domain.util.PageList<org.rhq.core.domain.plugin.Plugin> findPluginsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PluginCriteria criteria)
void enablePlugins(org.rhq.core.domain.auth.Subject subject,
List<Integer> pluginIds)
throws Exception
Exceptionvoid disablePlugins(org.rhq.core.domain.auth.Subject subject,
List<Integer> pluginIds)
throws Exception
Exceptionvoid deletePlugins(org.rhq.core.domain.auth.Subject subject,
List<Integer> pluginIds)
throws Exception
subject - The user performing the deletionpluginIds - The ids of the plugins to be deletedException - if an error occursCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.