Class AgentXPendingSet<A extends org.snmp4j.smi.Address>

java.lang.Object
org.snmp4j.agent.agentx.master.AbstractAgentXPending<A>
org.snmp4j.agent.agentx.master.AgentXPendingSet<A>
Type Parameters:
A - the address type.
All Implemented Interfaces:
Serializable, AgentXPending<A>

public class AgentXPendingSet<A extends org.snmp4j.smi.Address> extends AbstractAgentXPending<A>
AgentXPendingSet implements an AgentX SET request.
See Also:
  • Constructor Details

    • AgentXPendingSet

      public AgentXPendingSet(AgentXRegEntry<A> regEntry, org.snmp4j.agent.request.SnmpRequest request)
      Creates a new AgentXPendingSet request.
      Parameters:
      regEntry - a registration entry to process the request.
      request - the SNMP request.
  • Method Details

    • add

      public void add(org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest reference, org.snmp4j.smi.VariableBinding vb)
      Adds a variable binding to the SET request with a reference to the SNMP request it belongs to.
      Parameters:
      reference - the corresponding SNMP sub-request.
      vb - the variable binding.
    • getAgentXPDU

      public AgentXPDU getAgentXPDU()
      Description copied from interface: AgentXPending
      Gets the AgentX PDU.
      Returns:
      the AgentXPDU.
    • getSession

      public AgentXMasterSession<A> getSession()
      Description copied from interface: AgentXPending
      Gets the master agent session.
      Returns:
      the AgentXMasterSession.
    • getReferences

      public org.snmp4j.agent.request.SubRequestIterator<org.snmp4j.agent.request.SnmpRequest.SnmpSubRequest> getReferences()
      Description copied from interface: AgentXPending
      Get the references to the SNMP request that triggered the AgentX request.
      Returns:
      an iterator on the SNMP requests associated with this AgentX pending request.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractAgentXPending<A extends org.snmp4j.smi.Address>