Java Code Examples for org.apache.flink.configuration.ConfigurationUtils#hideSensitiveValues()

The following examples show how to use org.apache.flink.configuration.ConfigurationUtils#hideSensitiveValues() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobConfigInfo.java    From flink with Apache License 2.0 5 votes vote down vote up
public static ExecutionConfigInfo from(ArchivedExecutionConfig archivedExecutionConfig) {
	return new ExecutionConfigInfo(
		archivedExecutionConfig.getExecutionMode(),
		archivedExecutionConfig.getRestartStrategyDescription(),
		archivedExecutionConfig.getParallelism(),
		archivedExecutionConfig.getObjectReuseEnabled(),
		ConfigurationUtils.hideSensitiveValues(archivedExecutionConfig.getGlobalJobParameters()));
}
 
Example 2
Source File: ClusterConfigurationInfo.java    From flink with Apache License 2.0 5 votes vote down vote up
public static ClusterConfigurationInfo from(Configuration config) {
	final ClusterConfigurationInfo clusterConfig = new ClusterConfigurationInfo(config.keySet().size());
	final Map<String, String> configurationWithHiddenSensitiveValues = ConfigurationUtils.hideSensitiveValues(config.toMap());

	for (Map.Entry<String, String> keyValuePair : configurationWithHiddenSensitiveValues.entrySet()) {
		clusterConfig.add(new ClusterConfigurationInfoEntry(keyValuePair.getKey(), keyValuePair.getValue()));
	}

	return clusterConfig;
}
 
Example 3
Source File: JobConfigHandlerTest.java    From flink with Apache License 2.0 4 votes vote down vote up
private Map<String, String> filterSecretValues(Map<String, String> globalJobParameters) {
	return ConfigurationUtils.hideSensitiveValues(globalJobParameters);
}