Class AbstractThreshdDao
- java.lang.Object
-
- org.opennms.netmgt.config.dao.thresholding.impl.AbstractThreshdDao
-
- All Implemented Interfaces:
ReadableDao<ThreshdConfiguration>
,ReadableThreshdDao
- Direct Known Subclasses:
OnmsThreshdDao
,OverrideableThreshdDaoImpl
,SentinelThreshdDao
public abstract class AbstractThreshdDao extends Object implements ReadableThreshdDao
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_STORE_KEY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
interfaceInPackage(String iface, Package pkg)
This method is used to determine if the named interface is included in the passed package definition.void
rebuildPackageIpListMap()
This method is used to rebuild the package against iplist mapping when needed.void
reload()
Subclasses should call this reload after they have performed their reload logic.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.config.dao.common.api.ReadableDao
getReadOnlyConfig
-
-
-
-
Field Detail
-
JSON_STORE_KEY
public static final String JSON_STORE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
reload
public void reload()
Subclasses should call this reload after they have performed their reload logic.- Specified by:
reload
in interfaceReadableDao<ThreshdConfiguration>
-
rebuildPackageIpListMap
public final void rebuildPackageIpListMap()
Description copied from interface:ReadableThreshdDao
This method is used to rebuild the package against iplist mapping when needed. When a node gained service event occurs, threshd has to determine which package the ip/service combination is in, but if the interface is a newly added one, the package iplist should be rebuilt so that threshd could know which package this ip/service pair is in.- Specified by:
rebuildPackageIpListMap
in interfaceReadableThreshdDao
-
interfaceInPackage
public final boolean interfaceInPackage(String iface, Package pkg)
Description copied from interface:ReadableThreshdDao
This method is used to determine if the named interface is included in the passed package definition. If the interface belongs to the package then a value of true is returned. If the interface does not belong to the package a false value is returned. Note: Evaluation of the interface against a package filter will only work if the IP is already in the database.- Specified by:
interfaceInPackage
in interfaceReadableThreshdDao
- Parameters:
iface
- The interface to test against the package.pkg
- The package to check for the inclusion of the interface.- Returns:
- True if the interface is included in the package, false otherwise.
-
-