Package org.opennms.netmgt.config.snmp
Class Definition
- java.lang.Object
-
- org.opennms.netmgt.config.snmp.Configuration
-
- org.opennms.netmgt.config.snmp.Definition
-
- All Implemented Interfaces:
Serializable
public class Definition extends Configuration implements Serializable
Provides a mechanism for associating one or more specific IP addresses and/or IP address ranges with a set of SNMP parms which will be used in place of the default values during SNMP data collection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Definition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIpMatch(String ipMatch)voidaddRange(Range range)voidaddSpecific(String specific)booleanequals(Object obj)List<String>getIpMatches()StringgetLocation()StringgetProfileLabel()List<Range>getRanges()List<String>getSpecifics()inthashCode()booleanremoveIpMatch(String ipMatch)booleanremoveRange(Range range)booleanremoveSpecific(String specific)voidsetIpMatches(List<String> ipMatches)voidsetLocation(String location)voidsetProfileLabel(String profileLabel)voidsetRanges(List<Range> ranges)voidsetSpecifics(List<String> specifics)StringtoString()voidvisit(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
-
-
-
-
Method Detail
-
addRange
public void addRange(Range range) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeRange
public boolean removeRange(Range range)
-
addSpecific
public void addSpecific(String specific) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeSpecific
public boolean removeSpecific(String specific)
-
addIpMatch
public void addIpMatch(String ipMatch) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeIpMatch
public boolean removeIpMatch(String ipMatch)
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getProfileLabel
public String getProfileLabel()
-
setProfileLabel
public void setProfileLabel(String profileLabel)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConfiguration
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classConfiguration
-
visit
public void visit(SnmpConfigVisitor visitor)
-
toString
public String toString()
- Overrides:
toStringin classConfiguration
-
-