Instance Constructors
-
new
Partition(topic: String, partitionId: Int, time: Time, replicaManager: ReplicaManager)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
addReplicaIfNotExists(replica: Replica): Replica
-
-
final
def
asInstanceOf[T0]: T0
-
def
assignedReplicas(): Set[Replica]
-
def
checkEnoughReplicasReachOffset(requiredOffset: Long): (Boolean, Short)
-
def
clone(): AnyRef
-
def
debug(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
debug(e: ⇒ Throwable): Any
-
def
debug(msg: ⇒ String): Unit
-
def
delete(): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(that: Any): Boolean
-
def
error(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
error(e: ⇒ Throwable): Any
-
def
error(msg: ⇒ String): Unit
-
def
fatal(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
fatal(e: ⇒ Throwable): Any
-
def
fatal(msg: ⇒ String): Unit
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
getLeaderEpoch(): Int
-
def
getOrCreateReplica(replicaId: Int = localBrokerId): Replica
-
def
getOutOfSyncReplicas(leaderReplica: Replica, maxLagMs: Long): Set[Replica]
-
def
getReplica(replicaId: Int = localBrokerId): Option[Replica]
-
def
hashCode(): Int
-
var
inSyncReplicas: Set[Replica]
-
def
info(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
info(e: ⇒ Throwable): Any
-
def
info(msg: ⇒ String): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
def
isUnderReplicated(): Boolean
-
var
leaderReplicaIdOpt: Option[Int]
-
def
leaderReplicaIfLocal(): Option[Replica]
-
var
logIdent: String
-
lazy val
logger: Logger
-
val
loggerName: String
-
def
makeFollower(controllerId: Int, partitionStateInfo: PartitionStateInfo, correlationId: Int): Boolean
-
def
makeLeader(controllerId: Int, partitionStateInfo: PartitionStateInfo, correlationId: Int): Boolean
-
def
maybeExpandIsr(replicaId: Int): Unit
-
def
maybeShrinkIsr(replicaMaxLagTimeMs: Long): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
def
newGauge[T](name: String, metric: Gauge[T], tags: Map[String, String] = Map.empty): Gauge[T]
-
def
newHistogram(name: String, biased: Boolean = true, tags: Map[String, String] = Map.empty): Histogram
-
def
newMeter(name: String, eventType: String, timeUnit: TimeUnit, tags: Map[String, String] = Map.empty): Meter
-
def
newTimer(name: String, durationUnit: TimeUnit, rateUnit: TimeUnit, tags: Map[String, String] = Map.empty): Timer
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
partitionId: Int
-
def
removeMetric(name: String, tags: Map[String, String] = Map.empty): Unit
-
def
removeReplica(replicaId: Int): Unit
-
def
swallow(action: ⇒ Unit): Unit
-
def
swallowDebug(action: ⇒ Unit): Unit
-
def
swallowError(action: ⇒ Unit): Unit
-
def
swallowInfo(action: ⇒ Unit): Unit
-
def
swallowTrace(action: ⇒ Unit): Unit
-
def
swallowWarn(action: ⇒ Unit): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
val
tags: Map[String, String]
-
def
toString(): String
-
val
topic: String
-
def
trace(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
trace(e: ⇒ Throwable): Any
-
def
trace(msg: ⇒ String): Unit
-
def
updateReplicaLogReadResult(replicaId: Int, logReadResult: LogReadResult): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
warn(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
warn(e: ⇒ Throwable): Any
-
def
warn(msg: ⇒ String): Unit
Inherited from AnyRef
Inherited from Any
Data structure that represents a topic partition. The leader maintains the AR, ISR, CUR, RAR