Class AgentConfigManager.AgentState

java.lang.Object
org.snmp4j.agent.AgentConfigManager.AgentState
Enclosing class:
AgentConfigManager

public class AgentConfigManager.AgentState extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    void
    setState(int newState)
    Sets the new state independent from the current state.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public List<org.snmp4j.agent.AgentConfigManager.ErrorDescriptor> getErrors()
      Get the error descriptors associated with this agent state.
      Returns:
      the errors descriptor list.