public class SnmpAgentConfigProxyMapper extends Object
Modifier | Constructor and Description |
---|---|
protected |
SnmpAgentConfigProxyMapper() |
Modifier and Type | Method and Description |
---|---|
void |
addProxy(InetAddress hostAddress,
SnmpAgentAddress proxyAgentAddress)
Sets the proxied
SnmpAgentAddress for a given SnmpAgentAddress |
boolean |
contains(SnmpAgentAddress listenAddress)
Whether or not the given address is in use in the proxy mapper.
|
SnmpAgentAddress |
getAddress(InetAddress address)
Returns the proxied
SnmpAgentAddress that the provided host address. |
static SnmpAgentConfigProxyMapper |
getInstance() |
static void |
setInstance(SnmpAgentConfigProxyMapper mapper) |
public static SnmpAgentConfigProxyMapper getInstance()
public static void setInstance(SnmpAgentConfigProxyMapper mapper)
public SnmpAgentAddress getAddress(InetAddress address)
SnmpAgentAddress
that the provided host address.
is mapped to.address
- a "real" SNMP agent addresspublic void addProxy(InetAddress hostAddress, SnmpAgentAddress proxyAgentAddress)
SnmpAgentAddress
for a given SnmpAgentAddress
hostAddress
- the "real" SNMP agent addressproxyAgentAddress
- the SNMP agent address it is mapped topublic boolean contains(SnmpAgentAddress listenAddress)
Copyright © 2016. All rights reserved.