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, requiredAcks: Int): (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, keepInSyncTimeMs: Long, keepInSyncMessages: 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, offsetManager: OffsetManager): 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, offsetManager: OffsetManager): 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

  44. def maybeShrinkIsr(replicaMaxLagTimeMs: Long, replicaMaxLagMessages: Long): Unit

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  52. val partitionId: Int

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  62. def toString(): String

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

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

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

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

    Definition Classes
    Logging
  67. def updateLeaderHWAndMaybeExpandIsr(replicaId: Int): Unit

  68. final def wait(): Unit

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

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

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

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

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

    Definition Classes
    Logging

Inherited from KafkaMetricsGroup

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped