Class BasePhysicalClusterMetadata<LCMType extends org.apache.kafka.server.multitenant.LogicalClusterMetadata>
java.lang.Object
io.confluent.kafka.multitenant.BasePhysicalClusterMetadata<LCMType>
- All Implemented Interfaces:
org.apache.kafka.common.Configurable,org.apache.kafka.common.Reconfigurable,org.apache.kafka.server.multitenant.MultiTenantMetadata
- Direct Known Subclasses:
CommonTopicBasedPhysicalClusterMetadata
public abstract class BasePhysicalClusterMetadata<LCMType extends org.apache.kafka.server.multitenant.LogicalClusterMetadata>
extends Object
implements org.apache.kafka.server.multitenant.MultiTenantMetadata, org.apache.kafka.common.Reconfigurable
Base class for the PhysicalClusterMetadata plugins, interfacing with other confluent plugins
-
Field Summary
Fields inherited from interface org.apache.kafka.server.multitenant.MultiTenantMetadata
CONFLUENT_ENV_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BasePhysicalClusterMetadatagetInstance(String sessionUuid) Returns all active logical clusters hosted by this physical cluster, including logical clusters with stale/invalid metadataabstract LCMTypeReturns metadata LCMType of a given logical cluster IDvoidreconfigure(Map<String, ?> configs) voidvalidateReconfiguration(Map<String, ?> configs) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.Configurable
configureMethods inherited from interface org.apache.kafka.server.multitenant.MultiTenantMetadata
close, dedicatedLogicalClusterId, ensureOpen, firstActiveUserLkcMetadata, isUp, kafkaLogicalClusterIds, logicalClusterIds, registerTenantCallback, registerTenantDeactivatedCallback, registerTenantMetadataUpdateCallback, start, startClients
-
Constructor Details
-
BasePhysicalClusterMetadata
public BasePhysicalClusterMetadata()
-
-
Method Details
-
getInstance
-
reconfigure
-
reconfigurableConfigs
-
validateReconfiguration
-
logicalClusterIdsIncludingStale
Returns all active logical clusters hosted by this physical cluster, including logical clusters with stale/invalid metadata- Returns:
- set of logical cluster IDs
- Throws:
IllegalStateException- if not yet started or already shut down
-
metadata
Returns metadata LCMType of a given logical cluster ID- Specified by:
metadatain interfaceorg.apache.kafka.server.multitenant.MultiTenantMetadata- Parameters:
logicalClusterId- logical cluster ID- Returns:
- logical cluster metadata LCMType or null if logical cluster does not exist or its metadata is stale
- Throws:
IllegalStateException- if not yet started or already shut down
-