kafka.cluster

Partition

class Partition extends Logging with KafkaMetricsGroup

Data structure that represents a topic partition. The leader maintains the AR, ISR, CUR, RAR

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

Instance Constructors

  1. new Partition(topic: String, partitionId: Int, time: Time, replicaManager: ReplicaManager)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def addReplicaIfNotExists(replica: Replica): Replica

  7. def appendMessagesToLeader(messages: ByteBufferMessageSet, requiredAcks: Int = 0): LogAppendInfo

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def assignedReplicas(): Set[Replica]

  10. def checkEnoughReplicasReachOffset(requiredOffset: Long): (Boolean, Short)

  11. def clone(): AnyRef

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

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

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

    Definition Classes
    Logging
  15. def delete(): Unit

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(that: Any): Boolean

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

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

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

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

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

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

    Definition Classes
    Logging
  24. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  26. def getLeaderEpoch(): Int

  27. def getOrCreateReplica(replicaId: Int = localBrokerId): Replica

  28. def getOutOfSyncReplicas(leaderReplica: Replica, maxLagMs: Long): Set[Replica]

  29. def getReplica(replicaId: Int = localBrokerId): Option[Replica]

  30. def hashCode(): Int

    Definition Classes
    Partition → AnyRef → Any
  31. var inSyncReplicas: Set[Replica]

  32. def info(msg: ⇒ String, e: ⇒ Throwable): Unit

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

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

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

    Definition Classes
    Any
  36. def isUnderReplicated(): Boolean

  37. var leaderReplicaIdOpt: Option[Int]

  38. def leaderReplicaIfLocal(): Option[Replica]

  39. var logIdent: String

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

    Definition Classes
    Logging
  41. val loggerName: String

    Definition Classes
    Logging
  42. def makeFollower(controllerId: Int, partitionStateInfo: PartitionStateInfo, correlationId: Int): Boolean

    Make the local replica the follower by setting the new leader and ISR to empty If the leader replica id does not change, return false to indicate the replica manager

  43. def makeLeader(controllerId: Int, partitionStateInfo: PartitionStateInfo, correlationId: Int): Boolean

    Make the local replica the leader by resetting LogEndOffset for remote replicas (there could be old LogEndOffset from the time when this broker was the leader last time) and setting the new leader and ISR.

    Make the local replica the leader by resetting LogEndOffset for remote replicas (there could be old LogEndOffset from the time when this broker was the leader last time) and setting the new leader and ISR. If the leader replica id does not change, return false to indicate the replica manager.

  44. def maybeExpandIsr(replicaId: Int): Unit

    Check and maybe expand the ISR of the partition.

    Check and maybe expand the ISR of the partition.

    This function can be triggered when a replica's LEO has incremented

  45. def maybeShrinkIsr(replicaMaxLagTimeMs: Long): Unit

  46. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  47. def newGauge[T](name: String, metric: Gauge[T], tags: Map[String, String] = Map.empty): Gauge[T]

    Definition Classes
    KafkaMetricsGroup
  48. def newHistogram(name: String, biased: Boolean = true, tags: Map[String, String] = Map.empty): Histogram

    Definition Classes
    KafkaMetricsGroup
  49. def newMeter(name: String, eventType: String, timeUnit: TimeUnit, tags: Map[String, String] = Map.empty): Meter

    Definition Classes
    KafkaMetricsGroup
  50. def newTimer(name: String, durationUnit: TimeUnit, rateUnit: TimeUnit, tags: Map[String, String] = Map.empty): Timer

    Definition Classes
    KafkaMetricsGroup
  51. final def notify(): Unit

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

    Definition Classes
    AnyRef
  53. val partitionId: Int

  54. def removeMetric(name: String, tags: Map[String, String] = Map.empty): Unit

    Definition Classes
    KafkaMetricsGroup
  55. def removeReplica(replicaId: Int): Unit

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  63. val tags: Map[String, String]

  64. def toString(): String

    Definition Classes
    Partition → AnyRef → Any
  65. val topic: String

  66. def trace(msg: ⇒ String, e: ⇒ Throwable): Unit

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

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

    Definition Classes
    Logging
  69. def updateReplicaLogReadResult(replicaId: Int, logReadResult: LogReadResult): Unit

    Update the log end offset of a certain replica of this partition

  70. final def wait(): Unit

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

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

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

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

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

    Definition Classes
    Logging

Inherited from KafkaMetricsGroup

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped