public abstract class AbstractPluginExecutionStrategy extends OAMAbstractAMPlugin implements PluginExecutionStrategy
ModuleAdvice executionStrategy(PluginContext context,
String currentPlugin,String currentModulePlugin,
ListpluginList);
Method should be implemented by the extending classes
ModuleAdvice should have the proper advice and the next module
name set. Plugin execution will continue till ModuleAdvice returns an Advice.STOP adviceGenericPluginService.QueryKey| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractPluginExecutionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getDescription() |
abstract java.util.Map<java.lang.String,MonitoringData> |
getMonitoringData()
plug-in can return monitoring data after plug-in execution is
complete.
|
abstract boolean |
getMonitoringStatus()
set the monitoring status for the plug-in.
|
abstract java.lang.String |
getPluginName() |
abstract int |
getRevision() |
java.lang.String |
getStartingStep(AuthenticationContext authnContext) |
abstract ModuleAdvice |
processExecutionStrategy(PluginContext context,
java.lang.String currentPlugin,
ExecutionStatus currentPluginStatus,
java.util.List<java.lang.String> pluginList)
processExecutionStrategy method will be called before execution
of the first module and after execution of each modules in the module list. |
abstract void |
setMonitoringStatus(boolean status) |
getID, getLogger, getMaxWaitIntervel, getPluginConfig, initialize, poweronSelfTest, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetID, getLogger, getMaxWaitIntervel, getPluginConfig, initialize, poweronSelfTest, shutdownpublic abstract ModuleAdvice processExecutionStrategy(PluginContext context, java.lang.String currentPlugin, ExecutionStatus currentPluginStatus, java.util.List<java.lang.String> pluginList)
PluginExecutionStrategyprocessExecutionStrategy method will be called before execution
of the first module and after execution of each modules in the module list.
Next module will be called based on the module name specified in the ModuleAdvice.processExecutionStrategy in interface PluginExecutionStrategycontext - context of the plug-in.a PluginContext object that will contain
the execution context for plug-ins.currentPlugin - the current plug-in that is executed. If it is called
before the execution.
ModuleAdvice should have the proper advice and the next module
name set. Plugin execution will continue till ModuleAdvice returns
an Advice.STOP advicecurrentPluginStatus - is the status of the current plugin execution.
a ExecutionStatus object will be provided to the strategy.
This will be null when the strategy is called before execution.pluginList - the plugin listpublic abstract java.lang.String getDescription()
getDescription in interface GenericPluginServicepublic abstract java.util.Map<java.lang.String,MonitoringData> getMonitoringData()
GenericPluginServicegetMonitoringData in interface GenericPluginServicepublic abstract boolean getMonitoringStatus()
GenericPluginServicegetMonitoringStatus in interface GenericPluginServicepublic abstract java.lang.String getPluginName()
getPluginName in interface GenericPluginServicepublic abstract int getRevision()
getRevision in interface GenericPluginServicepublic abstract void setMonitoringStatus(boolean status)
setMonitoringStatus in interface GenericPluginServicestatus - the new monitoring statuspublic java.lang.String getStartingStep(AuthenticationContext authnContext)