public abstract class FPlugin
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AgentWorker |
agent
SNMP agent.
|
protected BaseMib |
mibBase |
Modifier and Type | Method and Description |
---|---|
BaseMib |
getMib() |
abstract void |
initPlugin()
The agent calls this method to initialize plugin.
|
void |
loadDefaultProperties()
The agent calls this method to load plugin specific default properties.
|
protected void |
loadDefaultProperty(java.lang.String key,
java.lang.String value)
Call this method in the derived class in the overriden
method
loadDefaultProperties() . |
void |
setAgent(AgentWorker agent) |
protected BaseMib mibBase
protected AgentWorker agent
public FPlugin(BaseMib mib)
public BaseMib getMib()
public void setAgent(AgentWorker agent)
public abstract void initPlugin() throws FException
FException
- failure to init plugin.public void loadDefaultProperties()
protected void loadDefaultProperty(java.lang.String key, java.lang.String value)
loadDefaultProperties()
.
The method could be called multiple times (or not at all)
to load multiple default properties. The convention for the property
keys is "plugin.name.key", where "name" is a plugin name.
This naming style eliminates potential keys collisions.key
- key.value
- value.