Package org.opennms.netmgt.config.snmp
Class SnmpConfig
- java.lang.Object
-
- org.opennms.netmgt.config.snmp.Configuration
-
- org.opennms.netmgt.config.snmp.SnmpConfig
-
- All Implemented Interfaces:
java.io.Serializable
public class SnmpConfig extends Configuration implements java.io.Serializable
Top-level element for the snmp-config.xml configuration file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnmpConfig()
SnmpConfig(java.lang.Integer port, java.lang.Integer retry, java.lang.Integer timeout, java.lang.String readCommunity, java.lang.String writeCommunity, java.lang.String proxyHost, java.lang.String version, java.lang.Integer maxVarsPerPdu, java.lang.Integer maxRepetitions, java.lang.Integer maxRequestSize, java.lang.String securityName, java.lang.Integer securityLevel, java.lang.String authPassphrase, java.lang.String authProtocol, java.lang.String engineId, java.lang.String contextEngineId, java.lang.String contextName, java.lang.String privacyPassphrase, java.lang.String privacyProtocol, java.lang.String enterpriseId, java.util.List<Definition> definitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDefinition(Definition definitions)
boolean
equals(java.lang.Object obj)
Definition
findDefinition(java.net.InetAddress agentInetAddress)
java.util.List<Definition>
getDefinitions()
SnmpProfiles
getSnmpProfiles()
int
hashCode()
boolean
removeDefinition(Definition definitions)
void
setDefinitions(java.util.List<Definition> definitions)
void
setSnmpProfiles(SnmpProfiles snmpProfiles)
java.lang.String
toString()
void
visit(SnmpConfigVisitor visitor)
-
Methods inherited from class org.opennms.netmgt.config.snmp.Configuration
deleteMaxRepetitions, deleteMaxRequestSize, deleteMaxVarsPerPdu, deletePort, deleteRetry, deleteSecurityLevel, deleteTimeout, getAuthPassphrase, getAuthProtocol, getContextEngineId, getContextName, getEngineId, getEnterpriseId, getMaxRepetitions, getMaxRequestSize, getMaxVarsPerPdu, getPort, getPrivacyPassphrase, getPrivacyProtocol, getProxyHost, getReadCommunity, getRetry, getSecurityLevel, getSecurityName, getTimeout, getTTL, getVersion, getWriteCommunity, hasMaxRepetitions, hasMaxRequestSize, hasMaxVarsPerPdu, hasPort, hasRetry, hasSecurityLevel, hasTimeout, hasTTL, setAuthPassphrase, setAuthProtocol, setContextEngineId, setContextName, setEngineId, setEnterpriseId, setMaxRepetitions, setMaxRequestSize, setMaxVarsPerPdu, setPort, setPrivacyPassphrase, setPrivacyProtocol, setProxyHost, setReadCommunity, setRetry, setSecurityLevel, setSecurityName, setTimeout, setTTL, setVersion, setWriteCommunity
-
-
-
-
Constructor Detail
-
SnmpConfig
public SnmpConfig()
-
SnmpConfig
public SnmpConfig(java.lang.Integer port, java.lang.Integer retry, java.lang.Integer timeout, java.lang.String readCommunity, java.lang.String writeCommunity, java.lang.String proxyHost, java.lang.String version, java.lang.Integer maxVarsPerPdu, java.lang.Integer maxRepetitions, java.lang.Integer maxRequestSize, java.lang.String securityName, java.lang.Integer securityLevel, java.lang.String authPassphrase, java.lang.String authProtocol, java.lang.String engineId, java.lang.String contextEngineId, java.lang.String contextName, java.lang.String privacyPassphrase, java.lang.String privacyProtocol, java.lang.String enterpriseId, java.util.List<Definition> definitions)
-
-
Method Detail
-
getDefinitions
public java.util.List<Definition> getDefinitions()
-
setDefinitions
public void setDefinitions(java.util.List<Definition> definitions)
-
addDefinition
public void addDefinition(Definition definitions) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
removeDefinition
public boolean removeDefinition(Definition definitions)
-
getSnmpProfiles
public SnmpProfiles getSnmpProfiles()
-
setSnmpProfiles
public void setSnmpProfiles(SnmpProfiles snmpProfiles)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classConfiguration
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classConfiguration
-
toString
public java.lang.String toString()
- Overrides:
toString
in classConfiguration
-
visit
public void visit(SnmpConfigVisitor visitor)
-
findDefinition
public Definition findDefinition(java.net.InetAddress agentInetAddress)
-
-