Class SnmpAgentConfig

  • All Implemented Interfaces:
    java.io.Serializable

    public class SnmpAgentConfig
    extends SnmpConfiguration
    implements java.io.Serializable
    Author:
    (various previous authors not documented), David Hustace
    See Also:
    Serialized Form
    • Field Detail

      • PROFILE_LABEL_FOR_DEFAULT_CONFIG

        public static final java.lang.String PROFILE_LABEL_FOR_DEFAULT_CONFIG
        See Also:
        Constant Field Values
      • AGENT_CONFIG_PREFIX

        public static final java.lang.String AGENT_CONFIG_PREFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • SnmpAgentConfig

        public SnmpAgentConfig()
      • SnmpAgentConfig

        public SnmpAgentConfig​(java.net.InetAddress agentAddress)
      • SnmpAgentConfig

        public SnmpAgentConfig​(java.net.InetAddress agentAddress,
                               SnmpConfiguration defaults)
    • Method Detail

      • parseProtocolConfigurationString

        public static SnmpAgentConfig parseProtocolConfigurationString​(java.lang.String protocolConfigString)
      • toProtocolConfigString

        public java.lang.String toProtocolConfigString()
      • toString

        public java.lang.String toString()
        Don't expose credentials here in plaintext in case this object is used in a log message. http://issues.opennms.org/browse/NMS-1504
        Overrides:
        toString in class java.lang.Object
      • getAddress

        public java.net.InetAddress getAddress()
      • setAddress

        public void setAddress​(java.net.InetAddress address)
      • getProxyFor

        public java.net.InetAddress getProxyFor()
      • setProxyFor

        public void setProxyFor​(java.net.InetAddress address)
      • getEffectiveAddress

        public java.net.InetAddress getEffectiveAddress()
      • isDefault

        public boolean isDefault()
      • setDefault

        public void setDefault​(boolean isDefault)
      • getProfileLabel

        public java.lang.String getProfileLabel()
      • setProfileLabel

        public void setProfileLabel​(java.lang.String profileLabel)
      • hashCode

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

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

        public java.util.Map<java.lang.String,​java.lang.String> toMap()
      • fromMap

        public static SnmpAgentConfig fromMap​(java.util.Map<java.lang.String,​java.lang.String> map)