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 void
addIpMatch(String ipMatch)
void
addRange(Range range)
void
addSpecific(String specific)
boolean
equals(Object obj)
List<String>
getIpMatches()
String
getLocation()
String
getProfileLabel()
List<Range>
getRanges()
List<String>
getSpecifics()
int
hashCode()
boolean
removeIpMatch(String ipMatch)
boolean
removeRange(Range range)
boolean
removeSpecific(String specific)
void
setIpMatches(List<String> ipMatches)
void
setLocation(String location)
void
setProfileLabel(String profileLabel)
void
setRanges(List<Range> ranges)
void
setSpecifics(List<String> specifics)
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
-
-
-
-
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:
hashCode
in classConfiguration
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classConfiguration
-
visit
public void visit(SnmpConfigVisitor visitor)
-
toString
public String toString()
- Overrides:
toString
in classConfiguration
-
-