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 statementFilterParseException
- if any.Map<InetAddress,Set<String>> getIPAddressServiceMap(String rule) throws FilterParseException
getIPServiceMap
rule
- a String
object.Map
object.FilterParseException
- if any.void flushActiveIpAddressListCache()
List<InetAddress> getActiveIPAddressList(String rule) throws FilterParseException
rule
- the filter ruleList
of IP addresses.FilterParseException
- if a rule is syntactically incorrect or failed in executing the SQL statement.List<InetAddress> getIPAddressList(String rule) throws FilterParseException
rule
- the filter ruleList
of IP addresses.FilterParseException
- if a rule is syntactically incorrect or failed in executing the SQL statement.boolean isValid(String addr, String rule) throws FilterParseException
isValid
addr
- a String
object.rule
- a String
object.FilterParseException
- if any.boolean isRuleMatching(String rule) throws FilterParseException
rule
- rule to match onFilterParseException
- if any.void validateRule(String rule) throws FilterParseException
validateRule
rule
- a String
object.FilterParseException
- if any.Copyright © 2020. All rights reserved.