public interface Clusters
| Modifier and Type | Method and Description |
|---|---|
void |
createCluster(String cluster,
ClusterData clusterData)
Create a new cluster.
|
void |
createFailureDomain(String cluster,
String domainName,
FailureDomain domain)
Create a domain into cluster
|
void |
createNamespaceIsolationPolicy(String cluster,
String policyName,
NamespaceIsolationData namespaceIsolationData)
Create a namespace isolation policy for a cluster
|
void |
deleteCluster(String cluster)
Delete an existing cluster
|
void |
deleteFailureDomain(String cluster,
String domainName)
Delete a domain in cluster
|
void |
deleteNamespaceIsolationPolicy(String cluster,
String policyName)
Delete a namespace isolation policy for a cluster
|
List<BrokerNamespaceIsolationData> |
getBrokersWithNamespaceIsolationPolicy(String cluster)
Returns list of active brokers with namespace-isolation policies attached to it.
|
BrokerNamespaceIsolationData |
getBrokerWithNamespaceIsolationPolicy(String cluster,
String broker)
Returns active broker with namespace-isolation policies attached to it.
|
ClusterData |
getCluster(String cluster)
Get the configuration data for the specified cluster.
|
List<String> |
getClusters()
Get the list of clusters.
|
FailureDomain |
getFailureDomain(String cluster,
String domainName)
Get the domain registered into a cluster
|
Map<String,FailureDomain> |
getFailureDomains(String cluster)
Get all registered domains in cluster
|
Map<String,NamespaceIsolationData> |
getNamespaceIsolationPolicies(String cluster)
Get the namespace isolation policies of a cluster
|
NamespaceIsolationData |
getNamespaceIsolationPolicy(String cluster,
String policyName)
Get a single namespace isolation policy for a cluster
|
Set<String> |
getPeerClusterNames(String cluster)
Get peer-cluster names
|
void |
updateCluster(String cluster,
ClusterData clusterData)
Update the configuration for a cluster.
|
void |
updateFailureDomain(String cluster,
String domainName,
FailureDomain domain)
Update a domain into cluster
|
void |
updateNamespaceIsolationPolicy(String cluster,
String policyName,
NamespaceIsolationData namespaceIsolationData)
Update a namespace isolation policy for a cluster
|
void |
updatePeerClusterNames(String cluster,
LinkedHashSet<String> peerClusterNames)
Update peer cluster names.
|
List<String> getClusters() throws PulsarAdminException
Get the list of all the Pulsar clusters.
Response Example:
["c1", "c2", "c3"]
PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException - Unexpected errorClusterData getCluster(String cluster) throws PulsarAdminException
Response Example:
{ 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 errorvoid createCluster(String cluster, ClusterData clusterData) throws PulsarAdminException
Provisions a new cluster. This operation requires Pulsar super-user privileges.
The name cannot contain '/' characters.
cluster - Cluster nameclusterData - the cluster configuration objectNotAuthorized - You don't have admin permission to create the clusterPulsarAdminException.ConflictException - Cluster already existsPulsarAdminException - Unexpected errorvoid updateCluster(String cluster, ClusterData clusterData) throws PulsarAdminException
This operation requires Pulsar super-user privileges.
cluster - Cluster nameclusterData - the cluster configuration objectPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorvoid updatePeerClusterNames(String cluster, LinkedHashSet<String> peerClusterNames) throws PulsarAdminException
This operation requires Pulsar super-user privileges.
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 errorSet<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 errorvoid deleteCluster(String cluster) throws PulsarAdminException
Delete a cluster
cluster - Cluster namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Cluster does not existPulsarAdminException.PreconditionFailedException - Cluster is not emptyPulsarAdminException - Unexpected errorMap<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 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 errorList<BrokerNamespaceIsolationData> getBrokersWithNamespaceIsolationPolicy(String cluster) throws PulsarAdminException
cluster - PulsarAdminExceptionBrokerNamespaceIsolationData getBrokerWithNamespaceIsolationPolicy(String cluster, String broker) throws PulsarAdminException
cluster - broker - PulsarAdminExceptionvoid 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 errorvoid 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 errorNamespaceIsolationData 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 errorvoid createFailureDomain(String cluster, String domainName, FailureDomain domain) throws PulsarAdminException
cluster - Cluster namedomainName - domain nameFailureDomain - 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 errorvoid updateFailureDomain(String cluster, String domainName, FailureDomain domain) throws PulsarAdminException
cluster - Cluster namedomainName - domain nameFailureDomain - 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 errorvoid 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 errorMap<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 errorFailureDomain 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 errorCopyright © 2017–2018 Apache Software Foundation. All rights reserved.