类 NamespaceIsolationPolicies
java.lang.Object
org.apache.pulsar.common.policies.impl.NamespaceIsolationPolicies
Namespace isolation policies.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidassignBroker(NamespaceName nsname, BrokerStatus brkStatus, SortedSet<BrokerStatus> primaryCandidates, SortedSet<BrokerStatus> secondaryCandidates, SortedSet<BrokerStatus> sharedCandidates) voiddeletePolicy(String policyName) Delete a policy.Get the full policy map.getPolicyByName(String policyName) Access method to get the namespace isolation policy by the policy name.getPolicyByNamespace(NamespaceName namespace) Get the namespace isolation policy for the specified namespace.booleanisSharedBroker(String host) Check to see whether a broker is in the shared broker pool or not.voidsetPolicy(String policyName, NamespaceIsolationData policyData) Set the policy data for a single policy.
-
构造器详细资料
-
NamespaceIsolationPolicies
public NamespaceIsolationPolicies() -
NamespaceIsolationPolicies
-
-
方法详细资料
-
getPolicyByName
Access method to get the namespace isolation policy by the policy name.- 参数:
policyName-- 返回:
-
getPolicyByNamespace
Get the namespace isolation policy for the specified namespace.There should only be one namespace isolation policy defined for the specific namespace. If multiple policies match, the first one will be returned.
- 参数:
namespace-- 返回:
-
setPolicy
Set the policy data for a single policy.- 参数:
policyName-policyData-
-
deletePolicy
Delete a policy.- 参数:
policyName-
-
getPolicies
Get the full policy map.- 返回:
- All policy data in a map
-
assignBroker
public void assignBroker(NamespaceName nsname, BrokerStatus brkStatus, SortedSet<BrokerStatus> primaryCandidates, SortedSet<BrokerStatus> secondaryCandidates, SortedSet<BrokerStatus> sharedCandidates)
-