public interface Tenants
| Modifier and Type | Method and Description |
|---|---|
void |
createTenant(String tenant,
TenantInfo config)
Create a new tenant.
|
CompletableFuture<Void> |
createTenantAsync(String tenant,
TenantInfo config)
Create a new tenant asynchronously.
|
void |
deleteTenant(String tenant)
Delete an existing tenant.
|
void |
deleteTenant(String tenant,
boolean force)
Delete an existing tenant.
|
CompletableFuture<Void> |
deleteTenantAsync(String tenant)
Delete an existing tenant asynchronously.
|
CompletableFuture<Void> |
deleteTenantAsync(String tenant,
boolean force)
Delete an existing tenant asynchronously.
|
TenantInfo |
getTenantInfo(String tenant)
Get the config of the tenant.
|
CompletableFuture<TenantInfo> |
getTenantInfoAsync(String tenant)
Get the config of the tenant asynchronously.
|
List<String> |
getTenants()
Get the list of tenants.
|
CompletableFuture<List<String>> |
getTenantsAsync()
Get the list of tenants asynchronously.
|
void |
updateTenant(String tenant,
TenantInfo config)
Update the admins for a tenant.
|
CompletableFuture<Void> |
updateTenantAsync(String tenant,
TenantInfo config)
Update the admins for a tenant asynchronously.
|
List<String> getTenants() throws PulsarAdminException
["my-tenant", "other-tenant", "third-tenant"]
PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException - Unexpected errorCompletableFuture<List<String>> getTenantsAsync()
["my-tenant", "other-tenant", "third-tenant"]
TenantInfo getTenantInfo(String tenant) throws PulsarAdminException
tenant - Tenant namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant does not existPulsarAdminException - Unexpected errorCompletableFuture<TenantInfo> getTenantInfoAsync(String tenant)
tenant - Tenant namevoid createTenant(String tenant, TenantInfo config) throws PulsarAdminException
tenant - Tenant nameconfig - Config dataPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.ConflictException - Tenant already existsPulsarAdminException.PreconditionFailedException - Tenant name is not validPulsarAdminException - Unexpected errorCompletableFuture<Void> createTenantAsync(String tenant, TenantInfo config)
tenant - Tenant nameconfig - Config datavoid updateTenant(String tenant, TenantInfo config) throws PulsarAdminException
tenant - Tenant nameconfig - Config dataPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant does not existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateTenantAsync(String tenant, TenantInfo config)
tenant - Tenant nameconfig - Config datavoid deleteTenant(String tenant) throws PulsarAdminException
tenant - Tenant namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - The tenant does not existPulsarAdminException.ConflictException - The tenant still has active namespacesPulsarAdminException - Unexpected errorvoid deleteTenant(String tenant, boolean force) throws PulsarAdminException
tenant - Tenant nameforce - Delete tenant forcefullyPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - The tenant does not existPulsarAdminException.ConflictException - The tenant still has active namespacesPulsarAdminException - Unexpected errorCompletableFuture<Void> deleteTenantAsync(String tenant)
tenant - Tenant nameCompletableFuture<Void> deleteTenantAsync(String tenant, boolean force)
tenant - Tenant nameforce - Delete tenant forcefullyCopyright © 2017–2022 Apache Software Foundation. All rights reserved.