public interface FilterDao
FilterDao interface.
Modifier and Type | Method and Description |
---|---|
void |
flushActiveIpAddressListCache() |
List<InetAddress> |
getActiveIPAddressList(String rule)
Get the (non-deleted) IP addresses that match the specified rule.
|
List<InetAddress> |
getIPAddressList(String rule)
Get the IP addresses (including deleted) that match the specified rule.
|
Map<InetAddress,Set<String>> |
getIPAddressServiceMap(String rule)
getIPServiceMap
|
SortedMap<Integer,String> |
getNodeMap(String rule)
This method returns a map of all node IDs and node labels that match
the rule that is passed in, sorted by node ID.
|
boolean |
isRuleMatching(String rule)
Does this rule match anything in the database? In particular, does it
return at least one record from the database?
|
boolean |
isValid(String addr,
String rule)
isValid
|
void |
validateRule(String rule)
validateRule
|
SortedMap<Integer,String> getNodeMap(String rule) throws FilterParseException
rule
- an expression rule to be parsed and executed.FilterParseException
- if a rule is syntactically incorrect or failed in
executing the SQL statementorg.opennms.netmgt.filter.FilterParseException
- if any.Map<InetAddress,Set<String>> getIPAddressServiceMap(String rule) throws FilterParseException
getIPServiceMap
rule
- a String
object.Map
object.org.opennms.netmgt.filter.FilterParseException
- if any.FilterParseException
void flushActiveIpAddressListCache()
List<InetAddress> getActiveIPAddressList(String rule) throws FilterParseException
rule
- the filter ruleList
of IP addresses.org.opennms.netmgt.filter.FilterParseException
- if a rule is syntactically incorrect or failed in executing the SQL statement.FilterParseException
List<InetAddress> getIPAddressList(String rule) throws FilterParseException
rule
- the filter ruleList
of IP addresses.org.opennms.netmgt.filter.FilterParseException
- if a rule is syntactically incorrect or failed in executing the SQL statement.FilterParseException
boolean isValid(String addr, String rule) throws FilterParseException
isValid
addr
- a String
object.rule
- a String
object.org.opennms.netmgt.filter.FilterParseException
- if any.FilterParseException
boolean isRuleMatching(String rule) throws FilterParseException
rule
- rule to match onorg.opennms.netmgt.filter.FilterParseException
- if any.FilterParseException
void validateRule(String rule) throws FilterParseException
validateRule
rule
- a String
object.org.opennms.netmgt.filter.FilterParseException
- if any.FilterParseException
Copyright © 2017. All rights reserved.