Search in sources :

Example 1 with AbstractProperties

use of org.akhq.configs.AbstractProperties in project akhq by tchiotludo.

the class KafkaModule method getDefaultsProperties.

private Properties getDefaultsProperties(List<? extends AbstractProperties> current, String type) {
    Properties properties = new Properties();
    current.stream().filter(r -> r.getName().equals(type)).forEach(r -> r.getProperties().forEach(properties::put));
    return properties;
}
Also used : AbstractProperties(org.akhq.configs.AbstractProperties) java.util(java.util) SchemaRegistryClient(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient) RestService(io.confluent.kafka.schemaregistry.client.rest.RestService) BasicAuthCredentialProvider(io.confluent.kafka.schemaregistry.client.security.basicauth.BasicAuthCredentialProvider) ProtobufSchemaProvider(io.confluent.kafka.schemaregistry.protobuf.ProtobufSchemaProvider) Default(org.akhq.configs.Default) AdminClient(org.apache.kafka.clients.admin.AdminClient) KafkaProducer(org.apache.kafka.clients.producer.KafkaProducer) ByteArraySerializer(org.apache.kafka.common.serialization.ByteArraySerializer) SchemaProvider(io.confluent.kafka.schemaregistry.SchemaProvider) URIBuilder(org.codehaus.httpcache4j.uri.URIBuilder) JsonSchemaProvider(io.confluent.kafka.schemaregistry.json.JsonSchemaProvider) ByteArrayDeserializer(org.apache.kafka.common.serialization.ByteArrayDeserializer) Configuration(org.sourcelab.kafka.connect.apiclient.Configuration) ImmutableMap(com.google.common.collect.ImmutableMap) KafkaConnectClient(org.sourcelab.kafka.connect.apiclient.KafkaConnectClient) Singleton(jakarta.inject.Singleton) AvroSchemaProvider(io.confluent.kafka.schemaregistry.avro.AvroSchemaProvider) Collectors(java.util.stream.Collectors) File(java.io.File) BasicAuthCredentialProviderFactory(io.confluent.kafka.schemaregistry.client.security.basicauth.BasicAuthCredentialProviderFactory) Connection(org.akhq.configs.Connection) UserInfoCredentialProvider(io.confluent.kafka.schemaregistry.client.security.basicauth.UserInfoCredentialProvider) CachedSchemaRegistryClient(io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient) Inject(jakarta.inject.Inject) SslFactory(io.confluent.kafka.schemaregistry.client.security.SslFactory) KafkaConsumer(org.apache.kafka.clients.consumer.KafkaConsumer) AbstractProperties(org.akhq.configs.AbstractProperties)

Aggregations

ImmutableMap (com.google.common.collect.ImmutableMap)1 SchemaProvider (io.confluent.kafka.schemaregistry.SchemaProvider)1 AvroSchemaProvider (io.confluent.kafka.schemaregistry.avro.AvroSchemaProvider)1 CachedSchemaRegistryClient (io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient)1 SchemaRegistryClient (io.confluent.kafka.schemaregistry.client.SchemaRegistryClient)1 RestService (io.confluent.kafka.schemaregistry.client.rest.RestService)1 SslFactory (io.confluent.kafka.schemaregistry.client.security.SslFactory)1 BasicAuthCredentialProvider (io.confluent.kafka.schemaregistry.client.security.basicauth.BasicAuthCredentialProvider)1 BasicAuthCredentialProviderFactory (io.confluent.kafka.schemaregistry.client.security.basicauth.BasicAuthCredentialProviderFactory)1 UserInfoCredentialProvider (io.confluent.kafka.schemaregistry.client.security.basicauth.UserInfoCredentialProvider)1 JsonSchemaProvider (io.confluent.kafka.schemaregistry.json.JsonSchemaProvider)1 ProtobufSchemaProvider (io.confluent.kafka.schemaregistry.protobuf.ProtobufSchemaProvider)1 Inject (jakarta.inject.Inject)1 Singleton (jakarta.inject.Singleton)1 File (java.io.File)1 java.util (java.util)1 Collectors (java.util.stream.Collectors)1 AbstractProperties (org.akhq.configs.AbstractProperties)1 Connection (org.akhq.configs.Connection)1 Default (org.akhq.configs.Default)1