PartitionLeaderElectionAlgorithms Utility

PartitionLeaderElectionAlgorithms is a utility with the algorithms for partition leader election:

controlledShutdownPartitionLeaderElection Utility

controlledShutdownPartitionLeaderElection(
  assignment: Seq[Int],
  isr: Seq[Int],
  liveReplicas: Set[Int],
  shuttingDownBrokers: Set[Int]): Option[Int]

controlledShutdownPartitionLeaderElection…​FIXME

Note
controlledShutdownPartitionLeaderElection is used when Election utility is used to leaderForControlledShutdown.

offlinePartitionLeaderElection Utility

offlinePartitionLeaderElection(
  assignment: Seq[Int],
  isr: Seq[Int],
  liveReplicas: Set[Int],
  uncleanLeaderElectionEnabled: Boolean,
  controllerContext: ControllerContext): Option[Int]

offlinePartitionLeaderElection…​FIXME

Note
offlinePartitionLeaderElection is used when Election utility is used to leaderForOffline.

preferredReplicaPartitionLeaderElection Utility

preferredReplicaPartitionLeaderElection(
  assignment: Seq[Int],
  isr: Seq[Int],
  liveReplicas: Set[Int]): Option[Int]

preferredReplicaPartitionLeaderElection…​FIXME

Note
preferredReplicaPartitionLeaderElection is used when Election utility is used to leaderForPreferredReplica.

reassignPartitionLeaderElection Utility

reassignPartitionLeaderElection(
  reassignment: Seq[Int],
  isr: Seq[Int],
  liveReplicas: Set[Int]): Option[Int]

reassignPartitionLeaderElection…​FIXME

Note
reassignPartitionLeaderElection is used when Election utility is used to leaderForReassign.

results matching ""

    No results matching ""