|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugin.pc.ServerPluginManager
org.rhq.enterprise.server.plugin.pc.alert.AlertSenderPluginManager
public class AlertSenderPluginManager
Plugin manager that takes care of loading the plug-ins and instantiating
of AlertSender etc.
| Constructor Summary | |
|---|---|
AlertSenderPluginManager(AbstractTypeServerPluginContainer pc)
|
|
| Method Summary | |
|---|---|
AlertSender |
getAlertSenderForNotification(org.rhq.core.domain.alert.notification.AlertNotification notification)
Instantiate an AlertSender for the passed shortName, which is the name you have provided in the plugin descriptor in the <shortName> element |
AlertSenderInfo |
getAlertSenderInfo(String shortName)
|
CustomAlertSenderBackingBean |
getBackingBeanForSender(String shortName)
|
String |
getBackingBeanNameForSender(String shortName)
|
List<String> |
getPluginList()
Return the list of deployed alert sender plug-ins by their <shortName> |
void |
loadPlugin(ServerPluginEnvironment env,
boolean enabled)
Postprocess the loading of the plugin - the actual load is done in the super class. |
protected void |
unloadPlugin(String pluginName)
Informs the plugin manager that a plugin with the given name is to be unloaded. |
| Methods inherited from class org.rhq.enterprise.server.plugin.pc.ServerPluginManager |
|---|
createServerPluginComponent, disablePlugin, enablePlugin, getLog, getParentPluginContainer, getPlugin, getPluginEnvironment, getPluginEnvironments, getServerPluginComponent, getServerPluginContext, initialize, instantiatePluginClass, isPluginEnabled, isPluginLoaded, loadPluginClass, rebuildServerPluginEnvironment, reloadPlugin, shutdown, startPlugin, startPlugins, stopPlugin, stopPlugins, unloadPlugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlertSenderPluginManager(AbstractTypeServerPluginContainer pc)
| Method Detail |
|---|
public void loadPlugin(ServerPluginEnvironment env,
boolean enabled)
throws Exception
loadPlugin in class ServerPluginManagerenv - the environment of the plugin to be loadedenabled - if true, the plugin is to be enabled and will be started soon
Exception - if the alert plugin could not be loaded due to errors such as the alert class being invalid
protected void unloadPlugin(String pluginName)
throws Exception
ServerPluginManager
unloadPlugin in class ServerPluginManagerpluginName - the name of the plugin to be unloaded
Exception - if the plugin manager cannot unload the pluginpublic AlertSender getAlertSenderForNotification(org.rhq.core.domain.alert.notification.AlertNotification notification)
notification - The alert notification we need the sender for. Wanted sender is in notification.getSenderName()
AlertSenderpublic List<String> getPluginList()
public AlertSenderInfo getAlertSenderInfo(String shortName)
public CustomAlertSenderBackingBean getBackingBeanForSender(String shortName)
public String getBackingBeanNameForSender(String shortName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||