Search in sources :

Example 1 with AdvancedServiceDiscoveryConfigurationMonitor

use of org.apache.knox.gateway.topology.discovery.advanced.AdvancedServiceDiscoveryConfigurationMonitor in project knox by apache.

the class GatewayServer method handleHadoopXmlResources.

private void handleHadoopXmlResources() {
    final HadoopXmlResourceParser hadoopXmlResourceParser = new HadoopXmlResourceParser(config);
    final HadoopXmlResourceMonitor hadoopXmlResourceMonitor = new HadoopXmlResourceMonitor(config, hadoopXmlResourceParser);
    final AdvancedServiceDiscoveryConfigurationMonitor advancedServiceDiscoveryConfigurationMonitor = new AdvancedServiceDiscoveryConfigurationMonitor(config);
    advancedServiceDiscoveryConfigurationMonitor.registerListener(hadoopXmlResourceParser);
    advancedServiceDiscoveryConfigurationMonitor.registerListener(hadoopXmlResourceMonitor);
    advancedServiceDiscoveryConfigurationMonitor.init();
    hadoopXmlResourceMonitor.setupMonitor();
}
Also used : AdvancedServiceDiscoveryConfigurationMonitor(org.apache.knox.gateway.topology.discovery.advanced.AdvancedServiceDiscoveryConfigurationMonitor) HadoopXmlResourceParser(org.apache.knox.gateway.topology.hadoop.xml.HadoopXmlResourceParser) HadoopXmlResourceMonitor(org.apache.knox.gateway.topology.hadoop.xml.HadoopXmlResourceMonitor)

Aggregations

AdvancedServiceDiscoveryConfigurationMonitor (org.apache.knox.gateway.topology.discovery.advanced.AdvancedServiceDiscoveryConfigurationMonitor)1 HadoopXmlResourceMonitor (org.apache.knox.gateway.topology.hadoop.xml.HadoopXmlResourceMonitor)1 HadoopXmlResourceParser (org.apache.knox.gateway.topology.hadoop.xml.HadoopXmlResourceParser)1