类 AutoFailoverPolicy
java.lang.Object
org.apache.pulsar.common.policies.AutoFailoverPolicy
- 直接已知子类:
MinAvailablePolicy
Basic definition of an auto-failover policy.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract booleanisBrokerAvailable(BrokerStatus brokerStatus) Determine whether a broker is considered available or not.abstract booleanshouldFailoverToSecondary(int totalPrimaryCandidates) abstract booleanshouldFailoverToSecondary(SortedSet<BrokerStatus> brokerStatus) Checks to see whether the new namespace ownership should be failed over to the secondary brokers.
-
构造器详细资料
-
AutoFailoverPolicy
public AutoFailoverPolicy()
-
-
方法详细资料
-
shouldFailoverToSecondary
Checks to see whether the new namespace ownership should be failed over to the secondary brokers.- 参数:
brokerStatus-- 返回:
-
shouldFailoverToSecondary
public abstract boolean shouldFailoverToSecondary(int totalPrimaryCandidates) -
isBrokerAvailable
Determine whether a broker is considered available or not.- 参数:
brokerStatus-- 返回:
-