Package org.opennms.netmgt.snmp
Class SnmpAgentConfig
- java.lang.Object
-
- org.opennms.netmgt.snmp.SnmpConfiguration
-
- org.opennms.netmgt.snmp.SnmpAgentConfig
-
- All Implemented Interfaces:
Serializable
public class SnmpAgentConfig extends SnmpConfiguration implements Serializable
- Author:
- (various previous authors not documented), David Hustace
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
AGENT_CONFIG_PREFIX
static String
PROFILE_LABEL_FOR_DEFAULT_CONFIG
-
Fields inherited from class org.opennms.netmgt.snmp.SnmpConfiguration
AUTH_NOPRIV, AUTH_PRIV, DEFAULT_AUTH_PASS_PHRASE, DEFAULT_AUTH_PROTOCOL, DEFAULT_CONTEXT_ENGINE_ID, DEFAULT_CONTEXT_NAME, DEFAULT_ENGINE_ID, DEFAULT_MAX_REPETITIONS, DEFAULT_MAX_REQUEST_SIZE, DEFAULT_MAX_VARS_PER_PDU, DEFAULT_PORT, DEFAULT_PRIV_PASS_PHRASE, DEFAULT_PRIV_PROTOCOL, DEFAULT_READ_COMMUNITY, DEFAULT_RETRIES, DEFAULT_SECURITY_LEVEL, DEFAULT_SECURITY_NAME, DEFAULT_TIMEOUT, DEFAULT_VERSION, DEFAULT_WRITE_COMMUNITY, DEFAULTS, NOAUTH_NOPRIV, VERSION_UNSPECIFIED, VERSION1, VERSION2C, VERSION3
-
-
Constructor Summary
Constructors Constructor Description SnmpAgentConfig()
SnmpAgentConfig(InetAddress agentAddress)
SnmpAgentConfig(InetAddress agentAddress, SnmpConfiguration defaults)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SnmpAgentConfig
fromMap(Map<String,String> map)
InetAddress
getAddress()
InetAddress
getEffectiveAddress()
String
getProfileLabel()
InetAddress
getProxyFor()
int
hashCode()
boolean
isDefault()
static SnmpAgentConfig
parseProtocolConfigurationString(String protocolConfigString)
void
setAddress(InetAddress address)
void
setDefault(boolean isDefault)
void
setProfileLabel(String profileLabel)
void
setProxyFor(InetAddress address)
Map<String,String>
toMap()
String
toProtocolConfigString()
String
toString()
Don't expose credentials here in plaintext in case this object is used in a log message.-
Methods inherited from class org.opennms.netmgt.snmp.SnmpConfiguration
getAuthPassPhrase, getAuthProtocol, getContextEngineId, getContextName, getEngineId, getEnterpriseId, getMaxRepetitions, getMaxRequestSize, getMaxVarsPerPdu, getPort, getPrivPassPhrase, getPrivProtocol, getReadCommunity, getRetries, getSecurityLevel, getSecurityName, getTimeout, getTTL, getVersion, getVersionAsString, getWriteCommunity, isVersion3, setAuthPassPhrase, setAuthProtocol, setContextEngineId, setContextName, setEngineId, setEnterpriseId, setMaxRepetitions, setMaxRequestSize, setMaxVarsPerPdu, setPort, setPrivPassPhrase, setPrivProtocol, setReadCommunity, setRetries, setSecurityLevel, setSecurityName, setTimeout, setTTL, setVersion, setVersionAsString, setWriteCommunity, stringToVersion, versionToString
-
-
-
-
Field Detail
-
PROFILE_LABEL_FOR_DEFAULT_CONFIG
public static final String PROFILE_LABEL_FOR_DEFAULT_CONFIG
- See Also:
- Constant Field Values
-
AGENT_CONFIG_PREFIX
public static final String AGENT_CONFIG_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SnmpAgentConfig
public SnmpAgentConfig()
-
SnmpAgentConfig
public SnmpAgentConfig(InetAddress agentAddress)
-
SnmpAgentConfig
public SnmpAgentConfig(InetAddress agentAddress, SnmpConfiguration defaults)
-
-
Method Detail
-
parseProtocolConfigurationString
public static SnmpAgentConfig parseProtocolConfigurationString(String protocolConfigString)
-
toProtocolConfigString
public String toProtocolConfigString()
-
toString
public 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
-
getAddress
public InetAddress getAddress()
-
setAddress
public void setAddress(InetAddress address)
-
getProxyFor
public InetAddress getProxyFor()
-
setProxyFor
public void setProxyFor(InetAddress address)
-
getEffectiveAddress
public InetAddress getEffectiveAddress()
-
isDefault
public boolean isDefault()
-
setDefault
public void setDefault(boolean isDefault)
-
getProfileLabel
public String getProfileLabel()
-
setProfileLabel
public void setProfileLabel(String profileLabel)
-
fromMap
public static SnmpAgentConfig fromMap(Map<String,String> map)
-
-