public class MirrorClientConfig extends AbstractConfig
Generally, these properties come from an mm2.properties configuration file (@see MirrorMakerConfig.clientConfig):
MirrorMakerConfig mmConfig = new MirrorMakerConfig(props);
MirrorClientConfig mmClientConfig = mmConfig.clientConfig("some-cluster");
In addition to the properties defined here, sub-configs are supported for Admin, Consumer, and Producer clients. For example:
bootstrap.servers = host1:9092
consumer.client.id = mm2-client
replication.policy.separator = __
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_CLIENT_PREFIX |
static String |
CONSUMER_CLIENT_PREFIX |
static String |
PRODUCER_CLIENT_PREFIX |
static String |
REPLICATION_POLICY_CLASS |
static Class<?> |
REPLICATION_POLICY_CLASS_DEFAULT |
static String |
REPLICATION_POLICY_SEPARATOR |
static String |
REPLICATION_POLICY_SEPARATOR_DEFAULT |
CONFIG_PROVIDERS_CONFIG
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
adminConfig()
Sub-config for Admin clients.
|
Map<String,Object> |
consumerConfig()
Sub-config for Consumer clients.
|
Map<String,Object> |
producerConfig()
Sub-config for Producer clients.
|
ReplicationPolicy |
replicationPolicy() |
documentationOf, equals, get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, postProcessParsedConfig, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverride
public static final String REPLICATION_POLICY_CLASS
public static final Class<?> REPLICATION_POLICY_CLASS_DEFAULT
public static final String REPLICATION_POLICY_SEPARATOR
public static final String REPLICATION_POLICY_SEPARATOR_DEFAULT
public static final String ADMIN_CLIENT_PREFIX
public static final String CONSUMER_CLIENT_PREFIX
public static final String PRODUCER_CLIENT_PREFIX
public ReplicationPolicy replicationPolicy()