Class TenantLifecycleManager
java.lang.Object
io.confluent.kafka.multitenant.TenantLifecycleManager
-
Constructor Summary
ConstructorsConstructorDescriptionTenantLifecycleManager(Map<String, ?> configs, org.apache.kafka.common.utils.Time time) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidReturns the list of all tenants that are deactivated, but not yet being deleted.Return all logical clusters that were deleted or being deleted Used for testingvoidReturn all logical clusters that are considered deleted and we won't try to delete again Used for testingReturn all logical clusters that are deactivatedbooleanisClusterActive(String lcId) Returns true if the cluster with the given id is active, false otherwise (a non-existing cluster is considered inactive)voidsetAdminSupplierAndCreateClient(Function<String, org.apache.kafka.clients.admin.Admin> adminClientSupplier) voidupdateTenantState(io.confluent.kafka.multitenant.KafkaLogicalClusterMetadata lcMeta)
-
Constructor Details
-
TenantLifecycleManager
-
-
Method Details
-
setAdminSupplierAndCreateClient
-
createAdminClient
public void createAdminClient() -
updateTenantState
public void updateTenantState(io.confluent.kafka.multitenant.KafkaLogicalClusterMetadata lcMeta) -
isClusterActive
Returns true if the cluster with the given id is active, false otherwise (a non-existing cluster is considered inactive) -
inactiveClusters
-
deactivatedClusters
-
fullyDeletedClusters
-
deletedClusters
-
deleteTenants
public void deleteTenants() -
close
public void close()
-