Class Snmp4JAgentConfig


  • public class Snmp4JAgentConfig
    extends java.lang.Object
    • Constructor Detail

    • Method Detail

      • getInetAddress

        public java.net.InetAddress getInetAddress()
      • getAuthPassPhrase

        public org.snmp4j.smi.OctetString getAuthPassPhrase()
      • getAuthProtocol

        public org.snmp4j.smi.OID getAuthProtocol()
      • getMaxRequestSize

        public int getMaxRequestSize()
      • getMaxVarsPerPdu

        public int getMaxVarsPerPdu()
      • getMaxRepetitions

        public int getMaxRepetitions()
      • getPort

        public int getPort()
      • getRetries

        public int getRetries()
      • getSecurityLevel

        public int getSecurityLevel()
      • getSecurityName

        public org.snmp4j.smi.OctetString getSecurityName()
      • getTimeout

        public int getTimeout()
      • getVersion

        public int getVersion()
      • getVersionString

        public java.lang.String getVersionString()
        Returns a string representation of the SNMP4J version constant
      • getWriteCommunity

        public java.lang.String getWriteCommunity()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • convertAddress

        public static org.snmp4j.smi.Address convertAddress​(java.net.InetAddress address,
                                                            int port)
        This method converts an InetAddress to an implementation of an SNMP4J Address (UdpAddress or TcpAddress) TODO: This needs to be updated when the protocol flag is added to the SNMP Config so that UDP or TCP can be used in v3 operations.
      • getTarget

        public org.snmp4j.Target getTarget()
      • getPrivProtocol

        public org.snmp4j.smi.OID getPrivProtocol()
      • getPrivPassPhrase

        public org.snmp4j.smi.OctetString getPrivPassPhrase()
      • getContextName

        public org.snmp4j.smi.OctetString getContextName()
      • getContextEngineID

        public org.snmp4j.smi.OctetString getContextEngineID()
      • createSnmpSession

        public org.snmp4j.Snmp createSnmpSession()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • createPdu

        public org.snmp4j.PDU createPdu​(int type)
        Creates an SNMP4J PDU based on the SNMP4J version constants. A v3 request requires a ScopedPDU.
        Parameters:
        type -
        Returns: