Class SnmpInfo


  • public class SnmpInfo
    extends java.lang.Object

    SnmpInfo class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    ranger
    • Constructor Detail

      • SnmpInfo

        public SnmpInfo()

        Constructor for SnmpInfo.

    • Method Detail

      • getCommunity

        @Deprecated
        public java.lang.String getCommunity()
        Deprecated.
        use getReadCommunity() instead.

        getCommunity

        Returns:
        the read community string
      • setCommunity

        @Deprecated
        public void setCommunity​(java.lang.String community)
        Deprecated.

        setCommunity

        Parameters:
        community - the read community string to set
      • getVersion

        public java.lang.String getVersion()

        getVersion

        Returns:
        the version
      • setVersion

        public void setVersion​(java.lang.String version)
      • getPort

        public java.lang.Integer getPort()

        getPort

        Returns:
        the port
      • setPort

        public void setPort​(java.lang.Integer port)

        setPort

        Parameters:
        port - the port to set
      • getRetries

        public java.lang.Integer getRetries()

        getRetries

        Returns:
        the retries
      • setRetries

        public void setRetries​(java.lang.Integer retries)

        setRetries

        Parameters:
        retries - the retries to set
      • getTimeout

        public java.lang.Integer getTimeout()

        getTimeout

        Returns:
        the timeout
      • setTimeout

        public void setTimeout​(java.lang.Integer timeout)

        setTimeout

        Parameters:
        timeout - the timeout to set
      • getLocation

        public java.lang.String getLocation()
        Returns:
        the m_location
      • setLocation

        public void setLocation​(java.lang.String location)
        Parameters:
        location - the m_location to set
      • getSecurityName

        public java.lang.String getSecurityName()
      • setSecurityName

        public void setSecurityName​(java.lang.String securityName)
      • hasTimeout

        public boolean hasTimeout()
      • hasMaxRequestSize

        public boolean hasMaxRequestSize()
      • hasMaxRepetitions

        public boolean hasMaxRepetitions()
      • hasMaxVarsPerPdu

        public boolean hasMaxVarsPerPdu()
      • getSecurityLevel

        public java.lang.Integer getSecurityLevel()
      • setSecurityLevel

        public void setSecurityLevel​(java.lang.Integer securityLevel)
      • getAuthPassPhrase

        public java.lang.String getAuthPassPhrase()
      • setAuthPassPhrase

        public void setAuthPassPhrase​(java.lang.String authPassPhrase)
      • getAuthProtocol

        public java.lang.String getAuthProtocol()
      • setAuthProtocol

        public void setAuthProtocol​(java.lang.String authProtocol)
      • getPrivPassPhrase

        public java.lang.String getPrivPassPhrase()
      • setPrivPassPhrase

        public void setPrivPassPhrase​(java.lang.String privPassPhrase)
      • getPrivProtocol

        public java.lang.String getPrivProtocol()
      • setPrivProtocol

        public void setPrivProtocol​(java.lang.String privProtocol)
      • getMaxVarsPerPdu

        public java.lang.Integer getMaxVarsPerPdu()
      • setMaxVarsPerPdu

        public void setMaxVarsPerPdu​(java.lang.Integer maxVarsPerPdu)
      • getMaxRepetitions

        public java.lang.Integer getMaxRepetitions()
      • setMaxRepetitions

        public void setMaxRepetitions​(java.lang.Integer maxRepetitions)
      • getEngineId

        public java.lang.String getEngineId()
      • setEngineId

        public void setEngineId​(java.lang.String engineId)
      • setContextEngineId

        public void setContextEngineId​(java.lang.String contextEngineId)
      • getContextEngineId

        public java.lang.String getContextEngineId()
      • setContextName

        public void setContextName​(java.lang.String contextName)
      • getContextName

        public java.lang.String getContextName()
      • setEnterpriseId

        public void setEnterpriseId​(java.lang.String enterpriseId)
      • getEnterpriseId

        public java.lang.String getEnterpriseId()
      • getReadCommunity

        public java.lang.String getReadCommunity()
      • setReadCommunity

        public void setReadCommunity​(java.lang.String readCommunity)
      • getWriteCommunity

        public java.lang.String getWriteCommunity()
      • setWriteCommunity

        public void setWriteCommunity​(java.lang.String writeCommunity)
      • getMaxRequestSize

        public java.lang.Integer getMaxRequestSize()
      • setMaxRequestSize

        public void setMaxRequestSize​(java.lang.Integer maxRequestSize)
      • getProxyHost

        public java.lang.String getProxyHost()
      • setProxyHost

        public void setProxyHost​(java.lang.String proxyHost)
      • getTTL

        public java.lang.Long getTTL()
      • setTTL

        public void setTTL​(java.lang.Long ttl)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public SnmpEventInfo createEventInfo​(java.lang.String firstIpAddress,
                                             java.lang.String lastIpAddress)
                                      throws java.net.UnknownHostException
        Creates a SnmpEventInfo object from this.
        Parameters:
        firstIpAddress - a String object which represents the first IP Address of the SnmpEventInfo. Must not be null.
        lastIpAddress - represents the last IP Address of the SnmpEventInfo. May be null.
        Returns:
        a SnmpEventInfo object.
        Throws:
        java.net.UnknownHostException - if any.