ConfigDef.parseForValidate
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.kafka.common.config.ConfigDef.parseForValidate(Showing top 6 results out of 315)

  • Common ways to obtain ConfigDef
private void myMethod () {
ConfigDef c =
  • new ConfigDef()
  • Smart code suggestions by Codota
}
origin: org.apache.kafka/kafka-clients

Map<String, Object> parseForValidate(Map<String, String> props, Map<String, ConfigValue> configValues) {
  Map<String, Object> parsed = new HashMap<>();
  Set<String> configsWithNoParent = getConfigsWithNoParent();
  for (String name: configsWithNoParent) {
    parseForValidate(name, props, parsed, configValues);
  }
  return parsed;
}
origin: org.apache.kafka/kafka-clients

public Map<String, ConfigValue> validateAll(Map<String, String> props) {
  Map<String, ConfigValue> configValues = new HashMap<>();
  for (String name: configKeys.keySet()) {
    configValues.put(name, new ConfigValue(name));
  }
  List<String> undefinedConfigKeys = undefinedDependentConfigs();
  for (String undefinedConfigKey: undefinedConfigKeys) {
    ConfigValue undefinedConfigValue = new ConfigValue(undefinedConfigKey);
    undefinedConfigValue.addErrorMessage(undefinedConfigKey + " is referred in the dependents, but not defined.");
    undefinedConfigValue.visible(false);
    configValues.put(undefinedConfigKey, undefinedConfigValue);
  }
  Map<String, Object> parsed = parseForValidate(props, configValues);
  return validate(parsed, configValues);
}
origin: org.apache.kafka/kafka-clients

parsed.put(name, value);
for (String dependent: key.dependents) {
  parseForValidate(dependent, props, parsed, configs);
origin: org.apache.kafka/kafka-clients

Map<String, Object> parseForValidate(Map<String, String> props, Map<String, ConfigValue> configValues) {
  Map<String, Object> parsed = new HashMap<>();
  Set<String> configsWithNoParent = getConfigsWithNoParent();
  for (String name: configsWithNoParent) {
    parseForValidate(name, props, parsed, configValues);
  }
  return parsed;
}
origin: org.apache.kafka/kafka-clients

public Map<String, ConfigValue> validateAll(Map<String, String> props) {
  Map<String, ConfigValue> configValues = new HashMap<>();
  for (String name: configKeys.keySet()) {
    configValues.put(name, new ConfigValue(name));
  }
  List<String> undefinedConfigKeys = undefinedDependentConfigs();
  for (String undefinedConfigKey: undefinedConfigKeys) {
    ConfigValue undefinedConfigValue = new ConfigValue(undefinedConfigKey);
    undefinedConfigValue.addErrorMessage(undefinedConfigKey + " is referred in the dependents, but not defined.");
    undefinedConfigValue.visible(false);
    configValues.put(undefinedConfigKey, undefinedConfigValue);
  }
  Map<String, Object> parsed = parseForValidate(props, configValues);
  return validate(parsed, configValues);
}
origin: org.apache.kafka/kafka-clients

parsed.put(name, value);
for (String dependent: key.dependents) {
  parseForValidate(dependent, props, parsed, configs);
org.apache.kafka.common.configConfigDefparseForValidate

Popular methods of ConfigDef

  • <init>
  • configKeys
    Get the configuration keys
  • names
    Returns unmodifiable set of properties names defined in this ConfigDef
  • define
  • toHtmlTable
  • convertToString
  • parseType
    Parse a value according to its expected type.
  • validate
  • validateAll
  • embed
  • embeddedDependents
    Updated list of dependent configs with the specified prefix added.
  • embeddedRecommender
    Returns a new recommender instance that delegates to the base recommender but unprefixes the input p
  • embeddedDependents,
  • embeddedRecommender,
  • embeddedValidator,
  • getConfigKeyRst,
  • getConfigValue,
  • getConfigsWithNoParent,
  • groups,
  • headers,
  • parse

Popular classes and methods

  • getOriginalFilename (MultipartFile)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • PrintStream (java.io)
    Wraps an existing OutputStream and provides convenience methods for writing common data types in a h
  • Path (java.nio.file)
  • BitSet (java.util)
    This implementation uses bit groups of size 32 to keep track of when bits are set to true or false.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTable (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)