Class ThreshdConfiguration
- java.lang.Object
-
- org.opennms.netmgt.config.threshd.ThreshdConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class ThreshdConfiguration extends java.lang.Object implements java.io.Serializable
Top-level element for the threshd-configuration.xml configuration file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThreshdConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPackage(Package p)
void
addThresholder(Thresholder thresholder)
boolean
equals(java.lang.Object obj)
java.util.Optional<Package>
getPackage(java.lang.String packageName)
java.util.List<Package>
getPackages()
java.lang.Integer
getThreads()
java.util.List<Thresholder>
getThresholders()
int
hashCode()
boolean
removePackage(Package p)
boolean
removeThresholder(Thresholder thresholder)
void
setPackages(java.util.List<Package> packages)
void
setThreads(java.lang.Integer threads)
void
setThresholders(java.util.List<Thresholder> thresholders)
-
-
-
Method Detail
-
getThreads
public java.lang.Integer getThreads()
-
setThreads
public void setThreads(java.lang.Integer threads)
-
getPackages
public java.util.List<Package> getPackages()
-
setPackages
public void setPackages(java.util.List<Package> packages)
-
getPackage
public java.util.Optional<Package> getPackage(java.lang.String packageName)
-
addPackage
public void addPackage(Package p)
-
removePackage
public boolean removePackage(Package p)
-
getThresholders
public java.util.List<Thresholder> getThresholders()
-
setThresholders
public void setThresholders(java.util.List<Thresholder> thresholders)
-
addThresholder
public void addThresholder(Thresholder thresholder)
-
removeThresholder
public boolean removeThresholder(Thresholder thresholder)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-