Class ApacheKafkaAdminAdapterFactory
- java.lang.Object
-
- com.linkedin.venice.pubsub.adapter.kafka.admin.ApacheKafkaAdminAdapterFactory
-
- All Implemented Interfaces:
PubSubAdminAdapterFactory<PubSubAdminAdapter>
,java.io.Closeable
,java.lang.AutoCloseable
public class ApacheKafkaAdminAdapterFactory extends java.lang.Object implements PubSubAdminAdapterFactory<PubSubAdminAdapter>
Implementation ofPubSubProducerAdapterFactory
used to create Apache Kafka admin clients. A kafka based admin client created using this factory is for managing and inspecting topics, brokers, configurations and ACLs.
-
-
Constructor Summary
Constructors Constructor Description ApacheKafkaAdminAdapterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PubSubAdminAdapter
create(VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository)
java.lang.String
getName()
-
-
-
Method Detail
-
create
public PubSubAdminAdapter create(VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository)
- Specified by:
create
in interfacePubSubAdminAdapterFactory<PubSubAdminAdapter>
- Parameters:
veniceProperties
- A copy of venice properties. Relevant producer configs will be extracted from veniceProperties using prefix matching. For example, to construct kafka producer configs that start with "kafka." prefix will be used.pubSubTopicRepository
- A repo to cache createdPubSubTopic
s.- Returns:
- Returns an instance of an admin adapter
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacePubSubAdminAdapterFactory<PubSubAdminAdapter>
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-