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:
Serializable
public class SnmpConfig extends Configuration implements Serializable
Top-level element for the snmp-config.xml configuration file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnmpConfig()
SnmpConfig(Integer port, Integer retry, Integer timeout, String readCommunity, String writeCommunity, String proxyHost, String version, Integer maxVarsPerPdu, Integer maxRepetitions, Integer maxRequestSize, String securityName, Integer securityLevel, String authPassphrase, String authProtocol, String engineId, String contextEngineId, String contextName, String privacyPassphrase, String privacyProtocol, String enterpriseId, List<Definition> definitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDefinition(Definition definitions)
boolean
equals(Object obj)
Definition
findDefinition(InetAddress agentInetAddress)
List<Definition>
getDefinitions()
SnmpProfiles
getSnmpProfiles()
int
hashCode()
boolean
removeDefinition(Definition definitions)
void
setDefinitions(List<Definition> definitions)
void
setSnmpProfiles(SnmpProfiles snmpProfiles)
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(Integer port, Integer retry, Integer timeout, String readCommunity, String writeCommunity, String proxyHost, String version, Integer maxVarsPerPdu, Integer maxRepetitions, Integer maxRequestSize, String securityName, Integer securityLevel, String authPassphrase, String authProtocol, String engineId, String contextEngineId, String contextName, String privacyPassphrase, String privacyProtocol, String enterpriseId, List<Definition> definitions)
-
-
Method Detail
-
getDefinitions
public List<Definition> getDefinitions()
-
setDefinitions
public void setDefinitions(List<Definition> definitions)
-
addDefinition
public void addDefinition(Definition definitions) throws IndexOutOfBoundsException
- Throws:
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(Object obj)
- Overrides:
equals
in classConfiguration
-
toString
public String toString()
- Overrides:
toString
in classConfiguration
-
visit
public void visit(SnmpConfigVisitor visitor)
-
findDefinition
public Definition findDefinition(InetAddress agentInetAddress)
-
-