@Override public ExecutorConfig findExecutorConfig(String name) { return getExecutorConfigInternal(name, "default").getAsReadOnly(); }
@Override public ExecutorConfig findExecutorConfig(String name) { return getExecutorConfigInternal(name, "default").getAsReadOnly(); }
/** * Returns a read-only executor configuration for the given name. * <p> * The name is matched by pattern to the configuration and by stripping the * partition ID qualifier from the given {@code name}. * If there is no config found by the name, it will return the configuration * with the name {@code default}. * * @param name name of the executor config * @return the executor configuration * @throws ConfigurationException if ambiguous configurations are found * @see StringPartitioningStrategy#getBaseName(java.lang.String) * @see #setConfigPatternMatcher(ConfigPatternMatcher) * @see #getConfigPatternMatcher() * @see EvictionConfig#setSize(int) */ public ExecutorConfig findExecutorConfig(String name) { name = getBaseName(name); ExecutorConfig config = lookupByPattern(configPatternMatcher, executorConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getExecutorConfig("default").getAsReadOnly(); }
/** * Returns a read-only executor configuration for the given name. * <p> * The name is matched by pattern to the configuration and by stripping the * partition ID qualifier from the given {@code name}. * If there is no config found by the name, it will return the configuration * with the name {@code default}. * * @param name name of the executor config * @return the executor configuration * @throws ConfigurationException if ambiguous configurations are found * @see StringPartitioningStrategy#getBaseName(java.lang.String) * @see #setConfigPatternMatcher(ConfigPatternMatcher) * @see #getConfigPatternMatcher() * @see EvictionConfig#setSize(int) */ public ExecutorConfig findExecutorConfig(String name) { name = getBaseName(name); ExecutorConfig config = lookupByPattern(configPatternMatcher, executorConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getExecutorConfig("default").getAsReadOnly(); }