org.opennms.netmgt.dao
Interface FilterDao
- All Known Implementing Classes:
- JdbcFilterDao
public interface FilterDao
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)
- 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
validateRule
void validateRule(String rule)
throws FilterParseException
- Throws:
FilterParseException
walkMatchingNodes
void walkMatchingNodes(String rule,
org.opennms.netmgt.model.EntityVisitor visitor)
Copyright ? 2008. All Rights Reserved.