public interface Clusters
| Modifier and Type | Method and Description |
|---|---|
void |
createCluster(String cluster,
ClusterData clusterData)
Create a new cluster.
|
CompletableFuture<Void> |
createClusterAsync(String cluster,
ClusterData clusterData)
Create a new cluster asynchronously.
|
void |
createFailureDomain(String cluster,
String domainName,
FailureDomain domain)
Create a domain into cluster.
|
CompletableFuture<Void> |
createFailureDomainAsync(String cluster,
String domainName,
FailureDomain domain)
Create a domain into cluster asynchronously.
|
void |
createNamespaceIsolationPolicy(String cluster,
String policyName,
NamespaceIsolationData namespaceIsolationData)
Create a namespace isolation policy for a cluster.
|
CompletableFuture<Void> |
createNamespaceIsolationPolicyAsync(String cluster,
String policyName,
NamespaceIsolationData namespaceIsolationData)
Create a namespace isolation policy for a cluster asynchronously.
|
void |
deleteCluster(String cluster)
Delete an existing cluster.
|
CompletableFuture<Void> |
deleteClusterAsync(String cluster)
Delete an existing cluster asynchronously.
|
void |
deleteFailureDomain(String cluster,
String domainName)
Delete a domain in cluster.
|
CompletableFuture<Void> |
deleteFailureDomainAsync(String cluster,
String domainName)
Delete a domain in cluster asynchronously.
|
void |
deleteNamespaceIsolationPolicy(String cluster,
String policyName)
Delete a namespace isolation policy for a cluster.
|
CompletableFuture<Void> |
deleteNamespaceIsolationPolicyAsync(String cluster,
String policyName)
Delete a namespace isolation policy for a cluster asynchronously.
|
List<BrokerNamespaceIsolationData> |
getBrokersWithNamespaceIsolationPolicy(String cluster)
Returns list of active brokers with namespace-isolation policies attached to it.
|
CompletableFuture<List<BrokerNamespaceIsolationData>> |
getBrokersWithNamespaceIsolationPolicyAsync(String cluster)
Returns list of active brokers with namespace-isolation policies attached to it asynchronously.
|
BrokerNamespaceIsolationData |
getBrokerWithNamespaceIsolationPolicy(String cluster,
String broker)
Returns active broker with namespace-isolation policies attached to it.
|
CompletableFuture<BrokerNamespaceIsolationData> |
getBrokerWithNamespaceIsolationPolicyAsync(String cluster,
String broker)
Returns active broker with namespace-isolation policies attached to it asynchronously.
|
ClusterData |
getCluster(String cluster)
Get the configuration data for the specified cluster.
|
CompletableFuture<ClusterData> |
getClusterAsync(String cluster)
Get the configuration data for the specified cluster asynchronously.
|
List<String> |
getClusters()
Get the list of clusters.
|
CompletableFuture<List<String>> |
getClustersAsync()
Get the list of clusters asynchronously.
|
FailureDomain |
getFailureDomain(String cluster,
String domainName)
Get the domain registered into a cluster.
|
CompletableFuture<FailureDomain> |
getFailureDomainAsync(String cluster,
String domainName)
Get the domain registered into a cluster asynchronously.
|
Map<String,FailureDomain> |
getFailureDomains(String cluster)
Get all registered domains in cluster.
|
CompletableFuture<Map<String,FailureDomain>> |
getFailureDomainsAsync(String cluster)
Get all registered domains in cluster asynchronously.
|
Map<String,NamespaceIsolationData> |
getNamespaceIsolationPolicies(String cluster)
Get the namespace isolation policies of a cluster.
|
CompletableFuture<Map<String,NamespaceIsolationData>> |
getNamespaceIsolationPoliciesAsync(String cluster)
Get the namespace isolation policies of a cluster asynchronously.
|
NamespaceIsolationData |
getNamespaceIsolationPolicy(String cluster,
String policyName)
Get a single namespace isolation policy for a cluster.
|
CompletableFuture<NamespaceIsolationData> |
getNamespaceIsolationPolicyAsync(String cluster,
String policyName)
Get a single namespace isolation policy for a cluster asynchronously.
|
Set<String> |
getPeerClusterNames(String cluster)
Get peer-cluster names.
|
CompletableFuture<Set<String>> |
getPeerClusterNamesAsync(String cluster)
Get peer-cluster names asynchronously.
|
void |
updateCluster(String cluster,
ClusterData clusterData)
Update the configuration for a cluster.
|
CompletableFuture<Void> |
updateClusterAsync(String cluster,
ClusterData clusterData)
Update the configuration for a cluster asynchronously.
|
void |
updateFailureDomain(String cluster,
String domainName,
FailureDomain domain)
Update a domain into cluster.
|
CompletableFuture<Void> |
updateFailureDomainAsync(String cluster,
String domainName,
FailureDomain domain)
Update a domain into cluster asynchronously.
|
void |
updateNamespaceIsolationPolicy(String cluster,
String policyName,
NamespaceIsolationData namespaceIsolationData)
Update a namespace isolation policy for a cluster.
|
CompletableFuture<Void> |
updateNamespaceIsolationPolicyAsync(String cluster,
String policyName,
NamespaceIsolationData namespaceIsolationData)
Update a namespace isolation policy for a cluster asynchronously.
|
void |
updatePeerClusterNames(String cluster,
LinkedHashSet<String> peerClusterNames)
Update peer cluster names.
|
CompletableFuture<Void> |
updatePeerClusterNamesAsync(String cluster,
LinkedHashSet<String> peerClusterNames)
Update peer cluster names asynchronously.
|
List<String> getClusters() throws PulsarAdminException
["c1", "c2", "c3"]
PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException - Unexpected errorCompletableFuture<List<String>> getClustersAsync()
["c1", "c2", "c3"]
ClusterData getCluster(String cluster) throws PulsarAdminException
{ serviceUrl : "http://my-broker.example.com:8080/" }
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permission to get the configuration of the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<ClusterData> getClusterAsync(String cluster)
{ serviceUrl : "http://my-broker.example.com:8080/" }
cluster - Cluster namevoid createCluster(String cluster, ClusterData clusterData) throws PulsarAdminException
cluster - Cluster nameclusterData - the cluster configuration objectPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.ConflictException - Cluster already existsPulsarAdminException - Unexpected errorCompletableFuture<Void> createClusterAsync(String cluster, ClusterData clusterData)
cluster - Cluster nameclusterData - the cluster configuration objectvoid updateCluster(String cluster, ClusterData clusterData) throws PulsarAdminException
cluster - Cluster nameclusterData - the cluster configuration objectPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateClusterAsync(String cluster, ClusterData clusterData)
cluster - Cluster nameclusterData - the cluster configuration objectvoid updatePeerClusterNames(String cluster, LinkedHashSet<String> peerClusterNames) throws PulsarAdminException
cluster - Cluster namepeerClusterNames - list of peer cluster namesPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updatePeerClusterNamesAsync(String cluster, LinkedHashSet<String> peerClusterNames)
cluster - Cluster namepeerClusterNames - list of peer cluster namesSet<String> getPeerClusterNames(String cluster) throws PulsarAdminException
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Domain doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Set<String>> getPeerClusterNamesAsync(String cluster)
cluster - Cluster namevoid deleteCluster(String cluster) throws PulsarAdminException
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Cluster does not existPulsarAdminException.PreconditionFailedException - Cluster is not emptyPulsarAdminException - Unexpected errorCompletableFuture<Void> deleteClusterAsync(String cluster)
cluster - Cluster nameMap<String,NamespaceIsolationData> getNamespaceIsolationPolicies(String cluster) throws PulsarAdminException
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Policies don't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Map<String,NamespaceIsolationData>> getNamespaceIsolationPoliciesAsync(String cluster)
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Policies don't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorvoid createNamespaceIsolationPolicy(String cluster, String policyName, NamespaceIsolationData namespaceIsolationData) throws PulsarAdminException
cluster - Cluster namepolicyName - Policy namenamespaceIsolationData - Namespace isolation policy configurationPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> createNamespaceIsolationPolicyAsync(String cluster, String policyName, NamespaceIsolationData namespaceIsolationData)
cluster - Cluster namepolicyName - Policy namenamespaceIsolationData - Namespace isolation policy configurationList<BrokerNamespaceIsolationData> getBrokersWithNamespaceIsolationPolicy(String cluster) throws PulsarAdminException
cluster - PulsarAdminExceptionCompletableFuture<List<BrokerNamespaceIsolationData>> getBrokersWithNamespaceIsolationPolicyAsync(String cluster)
cluster - BrokerNamespaceIsolationData getBrokerWithNamespaceIsolationPolicy(String cluster, String broker) throws PulsarAdminException
cluster - broker - the broker name in the form host:port.PulsarAdminExceptionCompletableFuture<BrokerNamespaceIsolationData> getBrokerWithNamespaceIsolationPolicyAsync(String cluster, String broker)
cluster - broker - void updateNamespaceIsolationPolicy(String cluster, String policyName, NamespaceIsolationData namespaceIsolationData) throws PulsarAdminException
cluster - Cluster namepolicyName - Policy namenamespaceIsolationData - Namespace isolation policy configurationPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateNamespaceIsolationPolicyAsync(String cluster, String policyName, NamespaceIsolationData namespaceIsolationData)
cluster - Cluster namepolicyName - Policy namenamespaceIsolationData - Namespace isolation policy configurationvoid deleteNamespaceIsolationPolicy(String cluster, String policyName) throws PulsarAdminException
cluster - Cluster namepolicyName - Policy namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> deleteNamespaceIsolationPolicyAsync(String cluster, String policyName)
cluster - Cluster namepolicyName - Policy nameNamespaceIsolationData getNamespaceIsolationPolicy(String cluster, String policyName) throws PulsarAdminException
cluster - Cluster namepolicyName - Policy namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Policy doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<NamespaceIsolationData> getNamespaceIsolationPolicyAsync(String cluster, String policyName)
cluster - Cluster namepolicyName - Policy namevoid createFailureDomain(String cluster, String domainName, FailureDomain domain) throws PulsarAdminException
cluster - Cluster namedomainName - domain namedomain - Domain configurationsPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.ConflictException - Broker already exist into other domainPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> createFailureDomainAsync(String cluster, String domainName, FailureDomain domain)
cluster - Cluster namedomainName - domain namedomain - Domain configurationsvoid updateFailureDomain(String cluster, String domainName, FailureDomain domain) throws PulsarAdminException
cluster - Cluster namedomainName - domain namedomain - Domain configurationsPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.ConflictException - Broker already exist into other domainPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateFailureDomainAsync(String cluster, String domainName, FailureDomain domain)
cluster - Cluster namedomainName - domain namedomain - Domain configurationsvoid deleteFailureDomain(String cluster, String domainName) throws PulsarAdminException
cluster - Cluster namedomainName - Domain namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> deleteFailureDomainAsync(String cluster, String domainName)
cluster - Cluster namedomainName - Domain nameMap<String,FailureDomain> getFailureDomains(String cluster) throws PulsarAdminException
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster don't existPulsarAdminException - Unexpected errorCompletableFuture<Map<String,FailureDomain>> getFailureDomainsAsync(String cluster)
cluster - Cluster nameFailureDomain getFailureDomain(String cluster, String domainName) throws PulsarAdminException
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Domain doesn't existPulsarAdminException.PreconditionFailedException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<FailureDomain> getFailureDomainAsync(String cluster, String domainName)
cluster - Cluster nameCopyright © 2017–2021 Apache Software Foundation. All rights reserved.