public class TenantResources extends BaseResources<org.apache.pulsar.common.policies.data.TenantInfo>
BASE_CLUSTERS_PATH, BASE_POLICIES_PATH| Constructor and Description |
|---|
TenantResources(MetadataStore store,
int operationTimeoutSec) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTenant(String tenantName,
org.apache.pulsar.common.policies.data.TenantInfo ti) |
CompletableFuture<Void> |
createTenantAsync(String tenantName,
org.apache.pulsar.common.policies.data.TenantInfo ti) |
CompletableFuture<Void> |
deleteTenantAsync(String tenantName) |
CompletableFuture<List<String>> |
getActiveNamespaces(String tenant,
String cluster) |
List<String> |
getListOfNamespaces(String tenant) |
Optional<org.apache.pulsar.common.policies.data.TenantInfo> |
getTenant(String tenantName) |
CompletableFuture<Optional<org.apache.pulsar.common.policies.data.TenantInfo>> |
getTenantAsync(String tenantName) |
CompletableFuture<Void> |
hasActiveNamespace(String tenant) |
List<String> |
listTenants() |
CompletableFuture<List<String>> |
listTenantsAsync() |
boolean |
tenantExists(String tenantName) |
CompletableFuture<Boolean> |
tenantExistsAsync(String tenantName) |
CompletableFuture<Void> |
updateTenantAsync(String tenantName,
Function<org.apache.pulsar.common.policies.data.TenantInfo,org.apache.pulsar.common.policies.data.TenantInfo> f) |
create, createAsync, delete, deleteAsync, deleteRecursive, exists, get, getAsync, getChildren, getChildrenAsync, getOperationTimeoutSec, joinPath, listSubTreeBFS, set, setAsync, setWithCreate, setWithCreateAsyncpublic TenantResources(MetadataStore store, int operationTimeoutSec)
public List<String> listTenants() throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<List<String>> listTenantsAsync()
public CompletableFuture<Void> deleteTenantAsync(String tenantName)
public boolean tenantExists(String tenantName) throws MetadataStoreException
MetadataStoreExceptionpublic Optional<org.apache.pulsar.common.policies.data.TenantInfo> getTenant(String tenantName) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Optional<org.apache.pulsar.common.policies.data.TenantInfo>> getTenantAsync(String tenantName)
public void createTenant(String tenantName, org.apache.pulsar.common.policies.data.TenantInfo ti) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Void> createTenantAsync(String tenantName, org.apache.pulsar.common.policies.data.TenantInfo ti)
public CompletableFuture<Void> updateTenantAsync(String tenantName, Function<org.apache.pulsar.common.policies.data.TenantInfo,org.apache.pulsar.common.policies.data.TenantInfo> f)
public CompletableFuture<Boolean> tenantExistsAsync(String tenantName)
public List<String> getListOfNamespaces(String tenant) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<List<String>> getActiveNamespaces(String tenant, String cluster)
public CompletableFuture<Void> hasActiveNamespace(String tenant)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.