public class KafkaClusterImpl extends JsonSettingsMapImpl implements IKafkaCluster
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
originatorName
Constructor and Description |
---|
KafkaClusterImpl(String clusterName,
IPunchPlatformProperties properties) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,String> |
getBrokerNames()
Get a list of this cluster servers/brokers.
|
String |
getName()
The logical name of the cluster, used to reference it in the Channels configuration files
and to identify it to the user in log strings.
|
String |
getZkConnectionString()
The Zookeeper connection string, including all node:port (comma separated) and the additional
root node of the Kafka cluster (as configured in the cluster brokers configuration file)
|
String |
getZkRoot() |
IZookeeperCluster |
getZookeeperCluster()
Each Kafka cluster is associated to a zookeeper cluster.
|
newSettingsListChild, newSettingsMapChild, put, putAll, putWithNoCloning, setOriginatorName
asFlatValuesMap, asFlatValuesMap, asFlatValuesMapIgnoreSettingsList, asHjsonString, asJsonString, asJsonString, asKvString, asListFlatValuesMapIgnoreSettingsList, asYamlString, childAsJson, childAsRawContent, childAsTarGz, childFileAsMap, childIsDir, childIsFile, getAsBoolean, getAsBoolean, getAsDouble, getAsInteger, getAsInteger, getAsIsoDateTime, getAsLong, getAsLong, getAsMsDuration, getAsRequiredBoolean, getAsRequiredDouble, getAsRequiredInteger, getAsRequiredIsoDateTime, getAsRequiredLong, getAsRequiredObject, getAsRequiredObjectOfClass, getAsRequiredSettingsList, getAsRequiredSettingsMap, getAsRequiredString, getAsRequiredTimeValue, getAsRequiredZonedDateTime, getAsSettingsList, getAsSettingsList, getAsSettingsListOrEmpty, getAsSettingsMap, getAsSettingsMap, getAsString, getAsString, getAsTimeValue, getChildName, getCreateMap, getDeepCopy, getMapOrEmpty, getNestedProperty, getNewInstance, getOrCreateNestedSettingsMap, getOriginatorName, getRequiredNestedProperty, getStringOrFail, getStringOrFail, getTimeValueMs, newSettingsMapChild, overrideWith, putUsingDottedPath, putUsingSlashPath, removeUsingDottedPath, removeUsingSlashPath, setJsonDecoding, setNestedProperty, setPropertyIfMissing
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
childAsListOfString, childAsMapEntries, childAsMapValues, childAsRequiredListOfString, childAsRequiredString, childAsString, childAsStringContent, getCreateAsListOfMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public KafkaClusterImpl(String clusterName, IPunchPlatformProperties properties)
clusterName
- a kafka cluster nameproperties
- the platform propertiespublic String getName()
IKafkaCluster
getName
in interface IKafkaCluster
public String getZkConnectionString()
IKafkaCluster
getZkConnectionString
in interface IKafkaCluster
public String getZkRoot()
getZkRoot
in interface IKafkaCluster
public IZookeeperCluster getZookeeperCluster()
IKafkaCluster
getZookeeperCluster
in interface IKafkaCluster
public Map<Integer,String> getBrokerNames()
IKafkaCluster
Watchout up to craig 5.2.1 we only have a list of broker urls without their ids. We make the id start with 1 to conform to production deployment(s).
We now set specifically the broker ids in the punchplatform.properties.
getBrokerNames
in interface IKafkaCluster
Copyright © 2014–2022. All rights reserved.