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

java.lang.Object
org.snmp4j.agent.agentx.AgentXSession<A>
org.snmp4j.agent.agentx.master.AgentXMasterSession<A>
All Implemented Interfaces:
Serializable

public class AgentXMasterSession<A extends org.snmp4j.smi.Address> extends AgentXSession<A>
The AgentXMasterSession extends the base session AgentXSession by agent capability information and sysObjectID as well as sysDescr.
Version:
1.0
Author:
Frank Fock
See Also:
  • Constructor Details

    • AgentXMasterSession

      public AgentXMasterSession(int sessionID, AgentXQueue queue, org.snmp4j.smi.OID oid, org.snmp4j.smi.OctetString descr)
      Creates an new AgentXMasterSession.
      Parameters:
      sessionID - the session ID.
      queue - the master agentx queue.
      oid - the OID identifying the master agent session.
      descr - the description of the master agent.
  • Method Details

    • getQueue

      public AgentXQueue getQueue()
      Gets the AgentX request queue of this master agent.
      Returns:
      the queue.
    • getOid

      public org.snmp4j.smi.OID getOid()
      Gets the session OID.
      Returns:
      an OID.
    • getDescr

      public org.snmp4j.smi.OctetString getDescr()
      Gets the session description.
      Returns:
      an OctetString.
    • getAgentXVersion

      public int getAgentXVersion()
      Gets the session's AgentX version.
      Returns:
      a version identifies.
    • setAgentXVersion

      public void setAgentXVersion(int agentXVersion)
      Sets the AgentX version identifier.
      Parameters:
      agentXVersion - an AgentX version.
    • addAgentCaps

      public void addAgentCaps(org.snmp4j.smi.OID sysORID, org.snmp4j.smi.OID agentCapsIndex)
      Add an agent caps entry.
      Parameters:
      sysORID - the sysORID value of the new entry.
      agentCapsIndex - the agentXCapsIndex.
    • removeAgentCaps

      public org.snmp4j.smi.OID removeAgentCaps(org.snmp4j.smi.OID sysORID)
      Remove an agent caps entry.
      Parameters:
      sysORID - the sysORID value of the new entry.
      Returns:
      the agentXCapsIndex or null if the entry does not exist.