Class ClustersBase
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.impl.ClustersBase
-
Field Summary
Fields inherited from class org.apache.pulsar.broker.admin.AdminResource
namespaceName, topicNameFields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, servletContext, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCluster(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, org.apache.pulsar.common.policies.data.ClusterDataImpl clusterData) voiddeleteCluster(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster) voiddeleteFailureDomain(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, String domainName) voiddeleteNamespaceIsolationPolicy(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, String policyName) voidgetBrokersWithNamespaceIsolationPolicy(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster) voidgetBrokerWithNamespaceIsolationPolicy(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, String broker) voidgetCluster(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster) voidgetClusters(javax.ws.rs.container.AsyncResponse asyncResponse) voidvoidgetFailureDomains(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster) voidgetNamespaceIsolationPolicies(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster) voidgetNamespaceIsolationPolicy(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, String policyName) voidgetPeerCluster(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster) voidsetFailureDomain(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, String domainName, org.apache.pulsar.common.policies.data.FailureDomainImpl domain) voidsetNamespaceIsolationPolicy(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, String policyName, org.apache.pulsar.common.policies.data.NamespaceIsolationDataImpl policyData) voidsetPeerClusterNames(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, LinkedHashSet<String> peerClusterNames) voidupdateCluster(javax.ws.rs.container.AsyncResponse asyncResponse, String cluster, org.apache.pulsar.common.policies.data.ClusterDataImpl clusterData) Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, filterSystemTopic, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isNotFoundException, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreateExtendedPartitionsAsync, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
ClustersBase
public ClustersBase()
-
-
Method Details
-
getClusters
@GET public void getClusters(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse) -
getCluster
@GET @Path("/{cluster}") public void getCluster(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster) -
createCluster
@PUT @Path("/{cluster}") public void createCluster(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster, org.apache.pulsar.common.policies.data.ClusterDataImpl clusterData) -
updateCluster
@POST @Path("/{cluster}") public void updateCluster(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster, org.apache.pulsar.common.policies.data.ClusterDataImpl clusterData) -
setPeerClusterNames
@POST @Path("/{cluster}/peers") public void setPeerClusterNames(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster, LinkedHashSet<String> peerClusterNames) -
getPeerCluster
@GET @Path("/{cluster}/peers") public void getPeerCluster(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster) -
deleteCluster
@DELETE @Path("/{cluster}") public void deleteCluster(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster) -
getNamespaceIsolationPolicies
@GET @Path("/{cluster}/namespaceIsolationPolicies") public void getNamespaceIsolationPolicies(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster) -
getNamespaceIsolationPolicy
-
getBrokersWithNamespaceIsolationPolicy
@GET @Path("/{cluster}/namespaceIsolationPolicies/brokers") public void getBrokersWithNamespaceIsolationPolicy(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster) -
getBrokerWithNamespaceIsolationPolicy
-
setNamespaceIsolationPolicy
@POST @Path("/{cluster}/namespaceIsolationPolicies/{policyName}") public void setNamespaceIsolationPolicy(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster, @PathParam("policyName") String policyName, org.apache.pulsar.common.policies.data.NamespaceIsolationDataImpl policyData) -
deleteNamespaceIsolationPolicy
-
setFailureDomain
-
getFailureDomains
@GET @Path("/{cluster}/failureDomains") public void getFailureDomains(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("cluster") String cluster) -
getDomain
-
deleteFailureDomain
-