Class MirrorClientConfig

java.lang.Object
org.apache.kafka.common.config.AbstractConfig
org.apache.kafka.connect.mirror.MirrorClientConfig

public class MirrorClientConfig extends AbstractConfig
Configuration required for MirrorClient to talk to a given target cluster.

This needs to contain at least the connection details for the target cluster (bootstrap.servers and any required TLS/SASL configuration), as well as REPLICATION_POLICY_CLASS when not using the default replication policy. It can also include AdminClientConfig and ConsumerConfig to customize the internal clients this uses. For example:

      bootstrap.servers = host1:9092
      consumer.client.id = mm2-client
      replication.policy.separator = __
   

  • Field Details

    • REPLICATION_POLICY_CLASS

      public static final String REPLICATION_POLICY_CLASS
      See Also:
    • REPLICATION_POLICY_CLASS_DEFAULT

      public static final Class<?> REPLICATION_POLICY_CLASS_DEFAULT
    • REPLICATION_POLICY_SEPARATOR

      public static final String REPLICATION_POLICY_SEPARATOR
      See Also:
    • REPLICATION_POLICY_SEPARATOR_DEFAULT

      public static final String REPLICATION_POLICY_SEPARATOR_DEFAULT
      See Also:
    • INTERNAL_TOPIC_SEPARATOR_ENABLED

      public static final String INTERNAL_TOPIC_SEPARATOR_ENABLED
      See Also:
    • INTERNAL_TOPIC_SEPARATOR_ENABLED_DOC

      public static final String INTERNAL_TOPIC_SEPARATOR_ENABLED_DOC
      See Also:
    • INTERNAL_TOPIC_SEPARATOR_ENABLED_DEFAULT

      public static final Boolean INTERNAL_TOPIC_SEPARATOR_ENABLED_DEFAULT
    • FORWARDING_ADMIN_CLASS

      public static final String FORWARDING_ADMIN_CLASS
      See Also:
    • FORWARDING_ADMIN_CLASS_DOC

      public static final String FORWARDING_ADMIN_CLASS_DOC
      See Also:
    • FORWARDING_ADMIN_CLASS_DEFAULT

      public static final Class<?> FORWARDING_ADMIN_CLASS_DEFAULT
    • ADMIN_CLIENT_PREFIX

      public static final String ADMIN_CLIENT_PREFIX
      See Also:
    • CONSUMER_CLIENT_PREFIX

      public static final String CONSUMER_CLIENT_PREFIX
      See Also:
    • PRODUCER_CLIENT_PREFIX

      public static final String PRODUCER_CLIENT_PREFIX
      See Also:
  • Method Details

    • replicationPolicy

      public ReplicationPolicy replicationPolicy()
    • adminConfig

      public Map<String,Object> adminConfig()
      Sub-config for Admin clients.
    • consumerConfig

      public Map<String,Object> consumerConfig()
      Sub-config for Consumer clients.
    • producerConfig

      public Map<String,Object> producerConfig()
      Sub-config for Producer clients.