Description
With KNOX-2186, Knox is capable of processing a properties file (auto-discovery-advanced-configuration.properties) which CM generates with a list of boolean flags of enabled services. These boolean flags are valid to all descriptors (topologies) within all topologies listed in gateway.auto.discovery.expected.topology.names.
It'd be beneficial to refine this behavior the following way:
- the monitor would handle different properties files with auto-discovery-advanced-configuration file name prefix (it's also recommended that whoever generates these files the file name suffix would be the topology name. For instance: auto-discovery-advanced-configuration-topology1.properties).
- a new property should be introduced in each property file: gateway.auto.discovery.topology.name to indicate the topology name (to not to rely on the file name suffix)
- keep the existing list of boolean flags of service enablement
- the existing gateway.auto.discovery.expected.topology.names property should be removed (it's no longer useful)
The monitor then builds a map of properties where the key is the topology name and the value is a list of boolean flags (if service X is enabled or not) and notifies all AdvancedServiceDiscoveryConfigChangeListener instances when a change is detected.
Attachments
Issue Links
- links to