public abstract class FHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FHandler.AgentStartType |
Modifier and Type | Field and Description |
---|---|
protected AgentWorker |
agent |
protected BaseMib |
mibBase |
Constructor and Description |
---|
FHandler() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getTimestampNow()
Current timestamp in string format.
|
void |
init()
The method is called by SNMP agent when it's initialized.
|
static boolean |
isIntegerEqual(java.lang.Object obj,
int value)
This method is a shortcut for
Integer.valueOf(n).equals(obj) |
void |
registerMib(BaseMib mb) |
void |
setAgent(AgentWorker agent) |
void |
shutdown()
The method is called by SNMP agent when it's shutdown.
|
void |
start(FHandler.AgentStartType startType)
The method is called by SNMP agent when it's started or restarted.
|
void |
stop()
The method is called by SNMP agent when it's stopped.
|
protected AgentWorker agent
protected BaseMib mibBase
public void setAgent(AgentWorker agent)
public void registerMib(BaseMib mb) throws FException
FException
public void init() throws FException
FException
- might be thrown in derived class.public void start(FHandler.AgentStartType startType)
startType
- agent start type.public void stop()
public void shutdown()
public static final boolean isIntegerEqual(java.lang.Object obj, int value)
Integer.valueOf(n).equals(obj)
obj
- any object, possibly nullvalue
- int valuepublic static final java.lang.String getTimestampNow()