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, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, getLogger, getMaxWaitIntervel, getPluginConfig, initialize, poweronSelfTest, shutdown
public abstract ModuleAdvice processExecutionStrategy(PluginContext context, java.lang.String currentPlugin, ExecutionStatus currentPluginStatus, java.util.List<java.lang.String> pluginList)
PluginExecutionStrategy
processExecutionStrategy
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 PluginExecutionStrategy
context
- 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 GenericPluginService
public abstract java.util.Map<java.lang.String,MonitoringData> getMonitoringData()
GenericPluginService
getMonitoringData
in interface GenericPluginService
public abstract boolean getMonitoringStatus()
GenericPluginService
getMonitoringStatus
in interface GenericPluginService
public abstract java.lang.String getPluginName()
getPluginName
in interface GenericPluginService
public abstract int getRevision()
getRevision
in interface GenericPluginService
public abstract void setMonitoringStatus(boolean status)
setMonitoringStatus
in interface GenericPluginService
status
- the new monitoring statuspublic java.lang.String getStartingStep(AuthenticationContext authnContext)