org.opennms.netmgt.dao
Interface FilterDao
- All Known Implementing Classes:
- JdbcFilterDao
public interface FilterDao
- Author:
- DJ Gregor
walkMatchingNodes
void walkMatchingNodes(String rule,
EntityVisitor visitor)
getNodeMap
SortedMap<Integer,String> getNodeMap(String rule)
throws FilterParseException
- This method returns a map of all node IDs and node labels that match
the rule that is passed in, sorted by node ID.
- Parameters:
rule - an expression rule to be parsed and executed.
- Returns:
- SortedMap containing all node IDs and node labels selected by the rule.
- Throws:
FilterParseException - if a rule is syntactically incorrect or failed in
executing the SQL statement
getIPServiceMap
Map<String,Set<String>> getIPServiceMap(String rule)
throws FilterParseException
- Throws:
FilterParseException
getIPList
List<String> getIPList(String rule)
throws FilterParseException
- Throws:
FilterParseException
isValid
boolean isValid(String addr,
String rule)
throws FilterParseException
- Throws:
FilterParseException
isRuleMatching
boolean isRuleMatching(String rule)
throws FilterParseException
- Does this rule match anything in the database? In particular, does it
return at least one record from the database?
- Parameters:
rule - rule to match on
- Returns:
- true if there is at least one match, false otherwise
- Throws:
FilterParseException
validateRule
void validateRule(String rule)
throws FilterParseException
- Throws:
FilterParseException
Copyright © 2009. All Rights Reserved.