Interface MetadataRuleManager

All Known Implementing Classes:
SQLMetadataRuleManager

public interface MetadataRuleManager
  • Method Details

    • start

      void start()
    • stop

      void stop()
    • poll

      void poll()
    • getAllRules

      Map<String,List<Rule>> getAllRules()
    • getRules

      List<Rule> getRules(String dataSource)
    • getRulesWithDefault

      List<Rule> getRulesWithDefault(String dataSource)
    • overrideRule

      boolean overrideRule(String dataSource, List<Rule> rulesConfig, AuditInfo auditInfo)
    • removeRulesForEmptyDatasourcesOlderThan

      int removeRulesForEmptyDatasourcesOlderThan(long timestamp)
      Remove rules for non-existence datasource (datasource with no segment) created older than the given timestamp.
      Parameters:
      timestamp - timestamp in milliseconds
      Returns:
      number of rules removed