Class

kafka.cluster

Partition

Related Doc: package cluster

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addReplicaIfNotExists(replica: Replica): Replica

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

    Permalink
  6. final def asInstanceOf[T0]: T0

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

    Permalink
  8. def checkEnoughReplicasReachOffset(requiredOffset: Long): (Boolean, Short)

    Permalink
  9. def clone(): AnyRef

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

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

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

    Permalink
    Definition Classes
    Logging
  13. def delete(): Unit

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Logging
  22. def finalize(): Unit

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

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

    Permalink
  25. def getOrCreateReplica(replicaId: Int = localBrokerId): Replica

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

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

    Permalink
  28. def hashCode(): Int

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  34. def isUnderReplicated(): Boolean

    Permalink
  35. var leaderReplicaIdOpt: Option[Int]

    Permalink
  36. def leaderReplicaIfLocal(): Option[Replica]

    Permalink
  37. var logIdent: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. lazy val logger: Logger

    Permalink
    Definition Classes
    Logging
  39. val loggerName: String

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

    Permalink

    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

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

    Permalink

    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.

  42. def maybeExpandIsr(replicaId: Int): Unit

    Permalink

    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

  43. def maybeShrinkIsr(replicaMaxLagTimeMs: Long): Unit

    Permalink
  44. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    KafkaMetricsGroup
  49. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. val partitionId: Int

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

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

    Permalink
  54. def swallow(action: ⇒ Unit): Unit

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

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

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

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

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

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

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

    Permalink
  62. def toString(): String

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

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

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

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

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

    Permalink

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

  68. final def wait(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    Logging

Inherited from KafkaMetricsGroup

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped