public abstract class OAMAbstractAMPlugin extends java.lang.Object implements GenericPluginService
GenericPluginService.QueryKey
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
LOGGER
The LOGGER.
|
Constructor and Description |
---|
OAMAbstractAMPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getID()
returns the unique ID of the plug-in.
|
java.util.logging.Logger |
getLogger()
returns the logger configured for the plug-in.
|
long |
getMaxWaitIntervel()
returns the max wait interval in milliseconds.
|
PluginConfig |
getPluginConfig()
Gets the plugin config.
|
ExecutionStatus |
initialize(PluginConfig config)
The function initializes the Plug-in.
|
boolean |
poweronSelfTest()
Plug-ins need to override this method to the
self test when the plug-ins are loaded.
|
ExecutionStatus |
shutdown(java.util.Map<java.lang.String,java.io.Serializable> AMEnvironmentContext)
Shutdown.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getMonitoringData, getMonitoringStatus, getPluginName, getRevision, setMonitoringStatus
public java.lang.String getID()
GenericPluginService
getID
in interface GenericPluginService
public java.util.logging.Logger getLogger()
GenericPluginService
getLogger
in interface GenericPluginService
public long getMaxWaitIntervel()
GenericPluginService
getMaxWaitIntervel
in interface GenericPluginService
public final PluginConfig getPluginConfig()
GenericPluginService
getPluginConfig
in interface GenericPluginService
PluginConfig
object that contains the
plug-in configuration data.public ExecutionStatus initialize(PluginConfig config)
GenericPluginService
initialize
in interface GenericPluginService
public ExecutionStatus shutdown(java.util.Map<java.lang.String,java.io.Serializable> AMEnvironmentContext)
GenericPluginService
shutdown
in interface GenericPluginService
AMEnvironmentContext
- the aM environment contextpublic boolean poweronSelfTest()
GenericPluginService
poweronSelfTest
will be called by the framework after the
plug-in is loaded to check if the plug-in has all the
dependencies satisfied and ready to service.poweronSelfTest
in interface GenericPluginService