kafka.controller

PreferredReplicaPartitionLeaderSelector

class PreferredReplicaPartitionLeaderSelector extends PartitionLeaderSelector with Logging

New leader = preferred (first assigned) replica (if in isr and alive); New isr = current isr; Replicas to receive LeaderAndIsr request = assigned replicas

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PreferredReplicaPartitionLeaderSelector
  2. Logging
  3. PartitionLeaderSelector
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PreferredReplicaPartitionLeaderSelector(controllerContext: ControllerContext)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def debug(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  7. def debug(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  8. def debug(msg: ⇒ String): Unit

    Definition Classes
    Logging
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def error(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  12. def error(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  13. def error(msg: ⇒ String): Unit

    Definition Classes
    Logging
  14. def fatal(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  15. def fatal(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  16. def fatal(msg: ⇒ String): Unit

    Definition Classes
    Logging
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def info(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  21. def info(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  22. def info(msg: ⇒ String): Unit

    Definition Classes
    Logging
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. var logIdent: String

    Attributes
    protected
    Definition Classes
    Logging
  25. lazy val logger: Logger

    Definition Classes
    Logging
  26. val loggerName: String

    Definition Classes
    Logging
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def selectLeader(topicAndPartition: TopicAndPartition, currentLeaderAndIsr: LeaderAndIsr): (LeaderAndIsr, Seq[Int])

    topicAndPartition

    The topic and partition whose leader needs to be elected

    currentLeaderAndIsr

    The current leader and isr of input partition read from zookeeper

    returns

    The leader and isr request, with the newly selected leader and isr, and the set of replicas to receive the LeaderAndIsrRequest.

    Definition Classes
    PreferredReplicaPartitionLeaderSelectorPartitionLeaderSelector
    Exceptions thrown
    NoReplicaOnlineException

    If no replica in the assigned replicas list is alive

  31. def swallow(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  32. def swallowDebug(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  33. def swallowError(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  34. def swallowInfo(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  35. def swallowTrace(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  36. def swallowWarn(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. def trace(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  40. def trace(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  41. def trace(msg: ⇒ String): Unit

    Definition Classes
    Logging
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def warn(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  46. def warn(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  47. def warn(msg: ⇒ String): Unit

    Definition Classes
    Logging

Inherited from Logging

Inherited from PartitionLeaderSelector

Inherited from AnyRef

Inherited from Any

Ungrouped