Class SubagentXConfigManager.AgentState

java.lang.Object
org.snmp4j.agent.agentx.subagent.SubagentXConfigManager.AgentState
All Implemented Interfaces:
org.snmp4j.agent.AgentState
Enclosing class:
SubagentXConfigManager

public class SubagentXConfigManager.AgentState extends Object implements org.snmp4j.agent.AgentState
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.snmp4j.agent.AgentState

    org.snmp4j.agent.AgentState.ErrorDescriptor
  • Field Summary

    Fields inherited from interface org.snmp4j.agent.AgentState

    STATE_CONFIGURED, STATE_CREATED, STATE_INITIALIZED, STATE_RESTORED, STATE_RUNNING, STATE_SAVED, STATE_SHUTDOWN, STATE_SUSPENDED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addError(org.snmp4j.agent.AgentState.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.AgentState.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()
      Specified by:
      getState in interface org.snmp4j.agent.AgentState
    • setState

      public void setState(int newState)
      Sets the new state independent from the current state.
      Specified by:
      setState in interface org.snmp4j.agent.AgentState
      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.
      Specified by:
      advanceState in interface org.snmp4j.agent.AgentState
      Parameters:
      newState - the new minimum state.
    • addError

      public void addError(org.snmp4j.agent.AgentState.ErrorDescriptor error)
      Add an error description to the internal error list.
      Specified by:
      addError in interface org.snmp4j.agent.AgentState
      Parameters:
      error - an ErrorDescriptor instance to add.
    • getErrors

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