Package org.opennms.core.test.snmp
Class SnmpAgentConfigProxyMapper
- java.lang.Object
-
- org.opennms.core.test.snmp.SnmpAgentConfigProxyMapper
-
public class SnmpAgentConfigProxyMapper extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SnmpAgentConfigProxyMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProxy(java.net.InetAddress hostAddress, SnmpAgentAddress proxyAgentAddress)
Sets the proxiedSnmpAgentAddress
for a givenSnmpAgentAddress
boolean
contains(SnmpAgentAddress listenAddress)
Whether or not the given address is in use in the proxy mapper.SnmpAgentAddress
getAddress(java.net.InetAddress address)
Returns the proxiedSnmpAgentAddress
that the provided host address.static SnmpAgentConfigProxyMapper
getInstance()
static void
setInstance(SnmpAgentConfigProxyMapper mapper)
-
-
-
Method Detail
-
getInstance
public static SnmpAgentConfigProxyMapper getInstance()
-
setInstance
public static void setInstance(SnmpAgentConfigProxyMapper mapper)
-
getAddress
public SnmpAgentAddress getAddress(java.net.InetAddress address)
Returns the proxiedSnmpAgentAddress
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 proxiedSnmpAgentAddress
for a givenSnmpAgentAddress
- Parameters:
hostAddress
- the "real" SNMP agent addressproxyAgentAddress
- 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.
-
-