Package org.snmp4j.agent
Class AgentConfigManager.AgentState
java.lang.Object
org.snmp4j.agent.AgentConfigManager.AgentState
- Enclosing class:
AgentConfigManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(org.snmp4j.agent.AgentConfigManager.ErrorDescriptor error) Add an error description to the internal error list.void
advanceState
(int newState) Advance the state to the given state.List<org.snmp4j.agent.AgentConfigManager.ErrorDescriptor>
Get the error descriptors associated with this agent state.int
getState()
void
setState
(int newState) Sets the new state independent from the current state.
-
Constructor Details
-
AgentState
public AgentState()
-
-
Method Details
-
getState
public int getState() -
setState
public void setState(int newState) Sets the new state independent from the current state.- Parameters:
newState
- the new state.
-
advanceState
public void advanceState(int newState) Advance the state to the given state. If the current state is greater than the provided state, the current state will not be changed.- Parameters:
newState
- the new minimum state.
-
addError
public void addError(org.snmp4j.agent.AgentConfigManager.ErrorDescriptor error) Add an error description to the internal error list.- Parameters:
error
- an ErrorDescriptor instance to add.
-
getErrors
Get the error descriptors associated with this agent state.- Returns:
- the errors descriptor list.
-