public class TopicBasedPhysicalClusterMetadata extends BasePhysicalClusterMetadata
Modifier and Type | Class and Description |
---|---|
static class |
TopicBasedPhysicalClusterMetadata.State |
Modifier and Type | Field and Description |
---|---|
SslCertificateManager |
sslCertificateManager |
TenantLifecycleManager |
tenantLifecycleManager |
INSTANCES
Constructor and Description |
---|
TopicBasedPhysicalClusterMetadata(org.apache.kafka.common.metrics.Metrics metrics) |
TopicBasedPhysicalClusterMetadata(org.apache.kafka.common.metrics.Metrics metrics,
org.apache.kafka.common.utils.Time time) |
Modifier and Type | Method and Description |
---|---|
void |
close(String brokerSessionUuid) |
void |
configure(Map<String,?> configs)
Creates a consumer for the LKC metadata topic (named in the ConfluentConfigs.CDC_LKC_METADATA_TOPIC_CONFIG
config.)
Adds the instance for the given broker session UUID, specified in KafkaConfig.BrokerSessionUuidProp to the
static instance map.
|
String |
dedicatedLogicalClusterId() |
void |
handleSocketServerInitialized(String endpoint) |
boolean |
isUp()
Returns true if cache is loaded and listening for metadata, otherwise returns false.
|
Set<String> |
kafkaLogicalClusterIds() |
Set<String> |
logicalClusterIds()
Returns all active logical clusters with up-to-date/valid metadata hosted by this physical
cluster
|
Set<String> |
logicalClusterIdsIncludingStale()
Returns all active logical clusters hosted by this physical cluster, including logical clusters
with stale/invalid metadata
|
LogicalClusterMetadata |
metadata(String logicalClusterId)
Returns metadata of a given logical cluster ID
|
Map<org.apache.kafka.common.Endpoint,CompletableFuture<Void>> |
start(Map<String,Object> interBrokerClientConfig,
Collection<org.apache.kafka.common.Endpoint> endpoints) |
getInstance
public TenantLifecycleManager tenantLifecycleManager
public SslCertificateManager sslCertificateManager
public TopicBasedPhysicalClusterMetadata(org.apache.kafka.common.metrics.Metrics metrics)
public TopicBasedPhysicalClusterMetadata(org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.Time time)
public void configure(Map<String,?> configs)
configs
- broker configurationorg.apache.kafka.common.config.ConfigException
- if KafkaConfig.BrokerSessionUuidProp is not set, or
ConfluentConfigs.CDC_LKC_METADATA_TOPIC_CONFIG is not set, or
ConfluentConfigs.CDC_TOPIC_LOAD_TIMEOUT_MS_CONFIG is not set, or
unable to monitor the SSL certificates on disk.UnsupportedOperationException
- if another instance of this class with the same broker
session UUID was already configured.public void close(String brokerSessionUuid)
public void handleSocketServerInitialized(String endpoint)
public Map<org.apache.kafka.common.Endpoint,CompletableFuture<Void>> start(Map<String,Object> interBrokerClientConfig, Collection<org.apache.kafka.common.Endpoint> endpoints)
public boolean isUp()
public String dedicatedLogicalClusterId()
public Set<String> logicalClusterIds()
BasePhysicalClusterMetadata
logicalClusterIds
in class BasePhysicalClusterMetadata
public Set<String> logicalClusterIdsIncludingStale()
BasePhysicalClusterMetadata
logicalClusterIdsIncludingStale
in class BasePhysicalClusterMetadata
public LogicalClusterMetadata metadata(String logicalClusterId)
BasePhysicalClusterMetadata
metadata
in class BasePhysicalClusterMetadata
logicalClusterId
- logical cluster ID