Class SnmpAgentConfigProxyMapper


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

      • SnmpAgentConfigProxyMapper

        protected SnmpAgentConfigProxyMapper()
    • Method Detail

      • getAddress

        public SnmpAgentAddress getAddress​(java.net.InetAddress address)
        Returns the proxied SnmpAgentAddress that the provided host address. is mapped to.
        Parameters:
        address - a "real" SNMP agent address
        Returns:
        the monitored host address
      • addProxy

        public void addProxy​(java.net.InetAddress hostAddress,
                             SnmpAgentAddress proxyAgentAddress)
        Sets the proxied SnmpAgentAddress for a given SnmpAgentAddress
        Parameters:
        hostAddress - the "real" SNMP agent address
        proxyAgentAddress - the SNMP agent address it is mapped to
      • contains

        public boolean contains​(SnmpAgentAddress listenAddress)
        Whether or not the given address is in use in the proxy mapper.