Class ApacheKafkaAdminAdapterFactory
java.lang.Object
com.linkedin.venice.pubsub.adapter.kafka.admin.ApacheKafkaAdminAdapterFactory
- All Implemented Interfaces:
PubSubAdminAdapterFactory<PubSubAdminAdapter>
,Closeable
,AutoCloseable
public class ApacheKafkaAdminAdapterFactory
extends Object
implements PubSubAdminAdapterFactory<PubSubAdminAdapter>
Implementation of
PubSubProducerAdapterFactory
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
create
(VeniceProperties veniceProperties, PubSubTopicRepository pubSubTopicRepository) getName()
-
Constructor Details
-
ApacheKafkaAdminAdapterFactory
public ApacheKafkaAdminAdapterFactory()
-
-
Method Details
-
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
- Specified by:
getName
in interfacePubSubAdminAdapterFactory<PubSubAdminAdapter>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-