public interface AgentStateListener
AgentStateListener
informs about changes of the state of a SNMP agent. According to the state change,
the listener may register or unregister MIB modules or run other tasks.Modifier and Type | Method | Description |
---|---|---|
void |
agentStateChanged(AgentConfigManager agentConfigManager,
AgentState newState) |
The agent state has changed to the new state as provided.
|
void agentStateChanged(AgentConfigManager agentConfigManager, AgentState newState)
agentConfigManager
- the agent's configuration manager. Use this object to access all agent resources, if needed to process this
event.newState
- the new state of the agent. Although the listener may advance to agent state further, it is not recommended
to do so, because the AgentConfigManager
will do it anyway.Copyright © 2018 SNMP4J.org. All rights reserved.