private Properties getKafkaProperties(DescriptorProperties descriptorProperties) { final Properties kafkaProperties = new Properties(); final List<Map<String, String>> propsList = descriptorProperties.getFixedIndexedProperties( CONNECTOR_PROPERTIES, Arrays.asList(CONNECTOR_PROPERTIES_KEY, CONNECTOR_PROPERTIES_VALUE)); propsList.forEach(kv -> kafkaProperties.put( descriptorProperties.getString(kv.get(CONNECTOR_PROPERTIES_KEY)), descriptorProperties.getString(kv.get(CONNECTOR_PROPERTIES_VALUE)) )); return kafkaProperties; }
private List<Host> getHosts(DescriptorProperties descriptorProperties) { final List<Map<String, String>> hosts = descriptorProperties.getFixedIndexedProperties( CONNECTOR_HOSTS, Arrays.asList(CONNECTOR_HOSTS_HOSTNAME, CONNECTOR_HOSTS_PORT, CONNECTOR_HOSTS_PROTOCOL)); return hosts.stream() .map(host -> new Host( descriptorProperties.getString(host.get(CONNECTOR_HOSTS_HOSTNAME)), descriptorProperties.getInt(host.get(CONNECTOR_HOSTS_PORT)), descriptorProperties.getString(host.get(CONNECTOR_HOSTS_PROTOCOL)))) .collect(Collectors.toList()); }
final List<Map<String, String>> offsetList = descriptorProperties.getFixedIndexedProperties( CONNECTOR_SPECIFIC_OFFSETS, Arrays.asList(CONNECTOR_SPECIFIC_OFFSETS_PARTITION, CONNECTOR_SPECIFIC_OFFSETS_OFFSET));
private Properties getKafkaProperties(DescriptorProperties descriptorProperties) { final Properties kafkaProperties = new Properties(); final List<Map<String, String>> propsList = descriptorProperties.getFixedIndexedProperties( CONNECTOR_PROPERTIES, Arrays.asList(CONNECTOR_PROPERTIES_KEY, CONNECTOR_PROPERTIES_VALUE)); propsList.forEach(kv -> kafkaProperties.put( descriptorProperties.getString(kv.get(CONNECTOR_PROPERTIES_KEY)), descriptorProperties.getString(kv.get(CONNECTOR_PROPERTIES_VALUE)) )); return kafkaProperties; }
private Properties getKafkaProperties(DescriptorProperties descriptorProperties) { final Properties kafkaProperties = new Properties(); final List<Map<String, String>> propsList = descriptorProperties.getFixedIndexedProperties( CONNECTOR_PROPERTIES, Arrays.asList(CONNECTOR_PROPERTIES_KEY, CONNECTOR_PROPERTIES_VALUE)); propsList.forEach(kv -> kafkaProperties.put( descriptorProperties.getString(kv.get(CONNECTOR_PROPERTIES_KEY)), descriptorProperties.getString(kv.get(CONNECTOR_PROPERTIES_VALUE)) )); return kafkaProperties; }
private List<Host> getHosts(DescriptorProperties descriptorProperties) { final List<Map<String, String>> hosts = descriptorProperties.getFixedIndexedProperties( CONNECTOR_HOSTS, Arrays.asList(CONNECTOR_HOSTS_HOSTNAME, CONNECTOR_HOSTS_PORT, CONNECTOR_HOSTS_PROTOCOL)); return hosts.stream() .map(host -> new Host( descriptorProperties.getString(host.get(CONNECTOR_HOSTS_HOSTNAME)), descriptorProperties.getInt(host.get(CONNECTOR_HOSTS_PORT)), descriptorProperties.getString(host.get(CONNECTOR_HOSTS_PROTOCOL)))) .collect(Collectors.toList()); }
private List<Host> getHosts(DescriptorProperties descriptorProperties) { final List<Map<String, String>> hosts = descriptorProperties.getFixedIndexedProperties( CONNECTOR_HOSTS, Arrays.asList(CONNECTOR_HOSTS_HOSTNAME, CONNECTOR_HOSTS_PORT, CONNECTOR_HOSTS_PROTOCOL)); return hosts.stream() .map(host -> new Host( descriptorProperties.getString(host.get(CONNECTOR_HOSTS_HOSTNAME)), descriptorProperties.getInt(host.get(CONNECTOR_HOSTS_PORT)), descriptorProperties.getString(host.get(CONNECTOR_HOSTS_PROTOCOL)))) .collect(Collectors.toList()); }
final List<Map<String, String>> offsetList = descriptorProperties.getFixedIndexedProperties( CONNECTOR_SPECIFIC_OFFSETS, Arrays.asList(CONNECTOR_SPECIFIC_OFFSETS_PARTITION, CONNECTOR_SPECIFIC_OFFSETS_OFFSET));
final List<Map<String, String>> offsetList = descriptorProperties.getFixedIndexedProperties( CONNECTOR_SPECIFIC_OFFSETS, Arrays.asList(CONNECTOR_SPECIFIC_OFFSETS_PARTITION, CONNECTOR_SPECIFIC_OFFSETS_OFFSET));