public class SQLMetadataRuleManager extends Object implements MetadataRuleManager
Constructor and Description |
---|
SQLMetadataRuleManager(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.google.common.base.Supplier<MetadataRuleManagerConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables,
SQLMetadataConnector connector,
AuditManager auditManager) |
Modifier and Type | Method and Description |
---|---|
static void |
createDefaultRule(org.skife.jdbi.v2.IDBI dbi,
String ruleTable,
String defaultDatasourceName,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
Map<String,List<Rule>> |
getAllRules() |
List<Rule> |
getRules(String dataSource) |
List<Rule> |
getRulesWithDefault(String dataSource) |
boolean |
overrideRule(String dataSource,
List<Rule> newRules,
AuditInfo auditInfo) |
void |
poll() |
void |
start() |
void |
stop() |
@Inject public SQLMetadataRuleManager(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.google.common.base.Supplier<MetadataRuleManagerConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables, SQLMetadataConnector connector, AuditManager auditManager)
public static void createDefaultRule(org.skife.jdbi.v2.IDBI dbi, String ruleTable, String defaultDatasourceName, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public void start()
start
in interface MetadataRuleManager
public void stop()
stop
in interface MetadataRuleManager
public void poll()
poll
in interface MetadataRuleManager
public Map<String,List<Rule>> getAllRules()
getAllRules
in interface MetadataRuleManager
public List<Rule> getRules(String dataSource)
getRules
in interface MetadataRuleManager
public List<Rule> getRulesWithDefault(String dataSource)
getRulesWithDefault
in interface MetadataRuleManager
public boolean overrideRule(String dataSource, List<Rule> newRules, AuditInfo auditInfo)
overrideRule
in interface MetadataRuleManager
Copyright © 2011–2015. All rights reserved.