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, setOriginatorNameasFlatValuesMap, 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, setPropertyIfMissingclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitchildAsListOfString, childAsMapEntries, childAsMapValues, childAsRequiredListOfString, childAsRequiredString, childAsString, childAsStringContent, getCreateAsListOfMapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic KafkaClusterImpl(String clusterName, IPunchPlatformProperties properties)
clusterName - a kafka cluster nameproperties - the platform propertiespublic String getName()
IKafkaClustergetName in interface IKafkaClusterpublic String getZkConnectionString()
IKafkaClustergetZkConnectionString in interface IKafkaClusterpublic String getZkRoot()
getZkRoot in interface IKafkaClusterpublic IZookeeperCluster getZookeeperCluster()
IKafkaClustergetZookeeperCluster in interface IKafkaClusterpublic Map<Integer,String> getBrokerNames()
IKafkaClusterWatchout 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 IKafkaClusterCopyright © 2014–2023. All rights reserved.