@Test public void testGetParentFirstLoaderPatterns() { Configuration config = new Configuration(); Assert.assertArrayEquals( CoreOptions.ALWAYS_PARENT_FIRST_LOADER_PATTERNS.defaultValue().split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); config.setString(CoreOptions.ALWAYS_PARENT_FIRST_LOADER_PATTERNS, "hello;world"); Assert.assertArrayEquals( "hello;world".split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); config.setString(CoreOptions.ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL, "how;are;you"); Assert.assertArrayEquals( "hello;world;how;are;you".split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); config.setString(CoreOptions.ALWAYS_PARENT_FIRST_LOADER_PATTERNS, ""); Assert.assertArrayEquals( "how;are;you".split(";"), CoreOptions.getParentFirstLoaderPatterns(config)); }
public static String[] getParentFirstLoaderPatterns(Configuration config) { String base = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS); String append = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL); String[] basePatterns = base.isEmpty() ? new String[0] : base.split(";"); if (append.isEmpty()) { return basePatterns; } else { return ArrayUtils.concat(basePatterns, append.split(";")); } }
CoreOptions { public static String[] getParentFirstLoaderPatterns(Configuration config) { String base = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS); String append = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL); String[] basePatterns = base.isEmpty() ? new String[0] : base.split(";"); if (append.isEmpty()) { return basePatterns; } else { return ArrayUtils.concat(basePatterns, append.split(";")); } } }
CoreOptions { public static String[] getParentFirstLoaderPatterns(Configuration config) { String base = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS); String append = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL); String[] basePatterns = base.isEmpty() ? new String[0] : base.split(";"); if (append.isEmpty()) { return basePatterns; } else { return ArrayUtils.concat(basePatterns, append.split(";")); } }  }
CoreOptions { public static String[] getParentFirstLoaderPatterns(Configuration config) { String base = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS); String append = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL); String[] basePatterns = base.isEmpty() ? new String[0] : base.split(";"); if (append.isEmpty()) { return basePatterns; } else { return ArrayUtils.concat(basePatterns, append.split(";")); } }  static String[] getParentFirstLoaderPatterns(Configuration config); static ConfigOption<Integer> fileSystemConnectionLimit(String scheme); static ConfigOption<Integer> fileSystemConnectionLimitIn(String scheme); static ConfigOption<Integer> fileSystemConnectionLimitOut(String scheme); static ConfigOption<Long> fileSystemConnectionLimitTimeout(String scheme); static ConfigOption<Long> fileSystemConnectionLimitStreamInactivityTimeout(String scheme); }
CoreOptions { public static String[] getParentFirstLoaderPatterns(Configuration config) { String base = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS); String append = config.getString(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL); String[] basePatterns = base.isEmpty() ? new String[0] : base.split(";"); if (append.isEmpty()) { return basePatterns; } else { return ArrayUtils.concat(basePatterns, append.split(";")); } }  static String[] getParentFirstLoaderPatterns(Configuration config); static ConfigOption<Integer> fileSystemConnectionLimit(String scheme); static ConfigOption<Integer> fileSystemConnectionLimitIn(String scheme); static ConfigOption<Integer> fileSystemConnectionLimitOut(String scheme); static ConfigOption<Long> fileSystemConnectionLimitTimeout(String scheme); static ConfigOption<Long> fileSystemConnectionLimitStreamInactivityTimeout(String scheme); static final ConfigOption<String> CLASSLOADER_RESOLVE_ORDER; static final ConfigOption<String> ALWAYS_PARENT_FIRST_LOADER_PATTERNS; static final ConfigOption<String> ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL; static final ConfigOption<String> FLINK_JVM_OPTIONS; static final ConfigOption<String> FLINK_JM_JVM_OPTIONS; static final ConfigOption<String> FLINK_TM_JVM_OPTIONS; static final ConfigOption<String> FLINK_HS_JVM_OPTIONS; @SuppressWarnings("unused")
	static final ConfigOption<String> FLINK_LOG_DIR; @SuppressWarnings("unused")
	static final ConfigOption<Integer> FLINK_LOG_MAX; @SuppressWarnings("unused")
	static final ConfigOption<String> FLINK_SSH_OPTIONS; @SuppressWarnings("unused")
	static final ConfigOption<String> FLINK_HADOOP_CONF_DIR; @SuppressWarnings("unused")
	static final ConfigOption<String> FLINK_YARN_CONF_DIR; @Documentation.OverrideDefault("'LOCAL_DIRS' on Yarn. '_FLINK_TMP_DIR' on Mesos. System.getProperty(\"java.io.tmpdir\") in standalone.")
	static final ConfigOption<String> TMP_DIRS; @Documentation.CommonOption(position = Documentation.CommonOption.POSITION_PARALLELISM_SLOTS)
	static final ConfigOption<Integer> DEFAULT_PARALLELISM; static final ConfigOption<String> DEFAULT_FILESYSTEM_SCHEME; static final ConfigOption<Boolean> FILESYTEM_DEFAULT_OVERRIDE; static final ConfigOption<Boolean> FILESYSTEM_OUTPUT_ALWAYS_CREATE_DIRECTORY; }