ContainerCluster extends AbstractConfigProducer<AbstractConfigProducer<?>> implements
        ComponentsConfig.Producer,
        JdiscBindingsConfig.Producer,
        DocumentmanagerConfig.Producer,
        ContainerDocumentConfig.Producer,
        HealthMonitorConfig.Producer,
        ApplicationMetadataConfig.Producer,
        PlatformBundlesConfig.Producer,
        IndexInfoConfig.Producer,
        IlscriptsConfig.Producer,
        SchemamappingConfig.Producer,
        QrSearchersConfig.Producer,
        QrStartConfig.Producer,
        QueryProfilesConfig.Producer,
        PageTemplatesConfig.Producer,
        SemanticRulesConfig.Producer,
        DocprocConfig.Producer,
        ClusterInfoConfig.Producer,
        RoutingProviderConfig.Producer,
        ConfigserverConfig.Producer,
        ThreadpoolConfig.Producer { public Collection<Component<?, ?>> getAllComponents() { List<Component<?, ?>> allComponents = new ArrayList<>(); recursivelyFindAllComponents(allComponents, this); Collections.sort(allComponents); return Collections.unmodifiableCollection(allComponents); } ContainerCluster(AbstractConfigProducer<?> parent, String subId, String name, DeployState deployState); void setZone(Zone zone); Zone getZone(); void addDefaultHandlersWithVip(); final void addDefaultHandlersExceptStatus(); void addMetricStateHandler(); void addDefaultRootHandler(); void addApplicationStatusHandler(); void addVipHandler(); final void addComponent(Component<?, ?> component); final void addSimpleComponent(String idSpec, String classSpec, String bundleSpec); @SuppressWarnings("unused") // Used from other repositories Component removeComponent(ComponentId componentId); void prepare(DeployState deployState); String getName(); List<CONTAINER> getContainers(); void addContainer(CONTAINER container); void addContainers(Collection<CONTAINER> containers); void setProcessingChains(ProcessingChains processingChains, BindingPattern... serverBindings); SearchChains getSearchChains(); ContainerSearch getSearch(); void setSearch(ContainerSearch containerSearch); void setHttp(Http http); Http getHttp(); ContainerDocproc getDocproc(); void setDocproc(ContainerDocproc containerDocproc); ContainerDocumentApi getDocumentApi(); void setDocumentApi(ContainerDocumentApi containerDocumentApi); DocprocChains getDocprocChains(); @SuppressWarnings("unchecked") Collection<Handler<?>> getHandlers(); void setSecretStore(SecretStore secretStore); Optional<SecretStore> getSecretStore(); Map<ComponentId, Component<?, ?>> getComponentsMap(); Collection<Component<?, ?>> getAllComponents(); @Override void getConfig(ComponentsConfig.Builder builder); @Override void getConfig(JdiscBindingsConfig.Builder builder); @Override void getConfig(DocumentmanagerConfig.Builder builder); @Override void getConfig(ContainerDocumentConfig.Builder builder); @Override void getConfig(HealthMonitorConfig.Builder builder); @Override void getConfig(ApplicationMetadataConfig.Builder builder); final void addPlatformBundle(Path bundlePath); @Override void getConfig(PlatformBundlesConfig.Builder builder); @Override void getConfig(QrSearchersConfig.Builder builder); @Override void getConfig(QrStartConfig.Builder builder); @Override void getConfig(DocprocConfig.Builder builder); @Override void getConfig(PageTemplatesConfig.Builder builder); @Override void getConfig(SemanticRulesConfig.Builder builder); @Override void getConfig(QueryProfilesConfig.Builder builder); @Override void getConfig(SchemamappingConfig.Builder builder); @Override void getConfig(IndexInfoConfig.Builder builder); void initialize(Map<String, AbstractSearchCluster> clusterMap); void addDefaultSearchAccessLog(); @Override void getConfig(IlscriptsConfig.Builder builder); @Override void getConfig(ClusterInfoConfig.Builder builder); @Override void getConfig(ConfigserverConfig.Builder builder); boolean isHostedVespa(); @Override void getConfig(RoutingProviderConfig.Builder builder); Map<String, String> concreteDocumentTypes(); List<String> serviceAliases(); List<String> endpointAliases(); void setHostClusterId(String clusterId); Optional<String> getHostClusterId(); void setJvmGCOptions(String opts); void setEnvironmentVars(String environmentVars); Optional<String> getJvmGCOptions(); final void setRpcServerEnabled(boolean rpcServerEnabled); void setHttpServerEnabled(boolean httpServerEnabled); @Override String toString(); static final String RESERVED_URI_PREFIX; static final String APPLICATION_STATUS_HANDLER_CLASS; static final String BINDINGS_OVERVIEW_HANDLER_CLASS; static final String LOG_HANDLER_CLASS; static final String DEFAULT_LINGUISTICS_PROVIDER; static final String CMS; static final String G1GC; static final String STATE_HANDLER_CLASS; static final BindingPattern STATE_HANDLER_BINDING_1; static final BindingPattern STATE_HANDLER_BINDING_2; static final String ROOT_HANDLER_PATH; static final BindingPattern ROOT_HANDLER_BINDING; static final BindingPattern VIP_HANDLER_BINDING; }
@Test public void testThatLinguisticsIsExcludedForClusterControllerCluster() { MockRoot root = createRoot(false); ClusterControllerContainerCluster cluster = createClusterControllerCluster(root); addClusterController(root.deployLogger(), cluster, "host-c1"); assertFalse(contains("com.yahoo.language.provider.DefaultLinguisticsProvider", cluster.getAllComponents())); }