object
ZkUtils extends Logging
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
val
BrokerIdsPath: String
-
val
BrokerTopicsPath: String
-
val
ConsumersPath: String
-
val
ControllerEpochPath: String
-
val
ControllerPath: String
-
val
PreferredReplicaLeaderElectionPath: String
-
val
ReassignPartitionsPath: String
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
conditionalUpdatePersistentPath(client: ZkClient, path: String, data: String, expectVersion: Int): (Boolean, Int)
-
def
conditionalUpdatePersistentPathIfExists(client: ZkClient, path: String, data: String, expectVersion: Int): (Boolean, Int)
-
def
createEphemeralPathExpectConflict(client: ZkClient, path: String, data: String): Unit
-
def
createEphemeralPathExpectConflictHandleZKBug(zkClient: ZkClient, path: String, data: String, expectedCallerData: Any, checker: (String, Any) ⇒ Boolean, backoffTime: Int): Unit
-
def
createPersistentPath(client: ZkClient, path: String, data: String = ""): Unit
-
def
createSequentialPersistentPath(client: ZkClient, path: String, data: String = ""): String
-
def
debug(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
debug(e: ⇒ Throwable): Any
-
def
debug(msg: ⇒ String): Unit
-
def
deletePartition(zkClient: ZkClient, brokerId: Int, topic: String): Unit
-
def
deletePath(client: ZkClient, path: String): Boolean
-
def
deletePathRecursive(client: ZkClient, path: String): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: 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
-
def
getAllBrokersInCluster(zkClient: ZkClient): Seq[Broker]
-
def
getAllPartitions(zkClient: ZkClient): Set[TopicAndPartition]
-
def
getAllReplicasOnBroker(zkClient: ZkClient, topics: Seq[String], brokerIds: Seq[Int]): Set[PartitionAndReplica]
-
def
getAllTopics(zkClient: ZkClient): Seq[String]
-
def
getBrokerInfo(zkClient: ZkClient, brokerId: Int): Option[Broker]
-
def
getChildren(client: ZkClient, path: String): Seq[String]
-
def
getChildrenParentMayNotExist(client: ZkClient, path: String): Seq[String]
-
final
def
getClass(): Class[_]
-
def
getCluster(zkClient: ZkClient): Cluster
-
def
getConsumerPartitionOwnerPath(group: String, topic: String, partition: Int): String
-
def
getConsumersInGroup(zkClient: ZkClient, group: String): Seq[String]
-
def
getConsumersPerTopic(zkClient: ZkClient, group: String): Map[String, List[String]]
-
def
getController(zkClient: ZkClient): Int
-
def
getEpochForPartition(zkClient: ZkClient, topic: String, partition: Int): Int
-
def
getInSyncReplicasForPartition(zkClient: ZkClient, topic: String, partition: Int): Seq[Int]
-
def
getLastPart(path: String): String
-
def
getLeaderAndIsrForPartition(zkClient: ZkClient, topic: String, partition: Int): Option[LeaderAndIsr]
-
def
getLeaderForPartition(zkClient: ZkClient, topic: String, partition: Int): Option[Int]
-
def
getLeaderIsrAndEpochForPartition(zkClient: ZkClient, topic: String, partition: Int): Option[LeaderIsrAndControllerEpoch]
-
def
getPartitionAssignmentForTopics(zkClient: ZkClient, topics: Seq[String]): Map[String, Map[Int, Seq[Int]]]
-
-
def
getPartitionReassignmentZkData(partitionsToBeReassigned: Map[TopicAndPartition, Seq[Int]]): String
-
def
getPartitionsAssignedToBroker(zkClient: ZkClient, topics: Seq[String], brokerId: Int): Seq[(String, Int)]
-
-
def
getPartitionsForTopics(zkClient: ZkClient, topics: Seq[String]): Map[String, Seq[Int]]
-
def
getPartitionsUndergoingPreferredReplicaElection(zkClient: ZkClient): Set[TopicAndPartition]
-
def
getReplicaAssignmentForTopics(zkClient: ZkClient, topics: Seq[String]): Map[TopicAndPartition, Seq[Int]]
-
def
getReplicaAssignmentFromPartitionAssignment(topicPartitionAssignment: Map[String, Map[Int, Seq[Int]]]): Map[(String, Int), Seq[Int]]
-
def
getReplicasForPartition(zkClient: ZkClient, topic: String, partition: Int): Seq[Int]
-
def
getSortedBrokerList(zkClient: ZkClient): Seq[Int]
-
def
getTopicPartitionLeaderAndIsrPath(topic: String, partitionId: Int): String
-
def
getTopicPartitionPath(topic: String, partitionId: Int): String
-
def
getTopicPartitionsPath(topic: String): String
-
def
getTopicPath(topic: String): String
-
def
hashCode(): Int
-
def
info(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
info(e: ⇒ Throwable): Any
-
def
info(msg: ⇒ String): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
def
isPartitionOnBroker(zkClient: ZkClient, topic: String, partition: Int, brokerId: Int): Boolean
-
def
leaderAndIsrZkData(leaderAndIsr: LeaderAndIsr, controllerEpoch: Int): String
-
var
logIdent: String
-
lazy val
logger: Logger
-
val
loggerName: String
-
def
makeSurePersistentPathExists(client: ZkClient, path: String): Unit
-
def
maybeDeletePath(zkUrl: String, dir: String): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
parseLeaderAndIsr(leaderAndIsrStr: String, topic: String, partition: Int, stat: Stat): Option[LeaderIsrAndControllerEpoch]
-
def
parsePartitionReassignmentData(jsonData: String): Map[TopicAndPartition, Seq[Int]]
-
def
parseTopicsData(jsonData: String): Seq[String]
-
def
pathExists(client: ZkClient, path: String): Boolean
-
def
readData(client: ZkClient, path: String): (String, Stat)
-
def
readDataMaybeNull(client: ZkClient, path: String): (Option[String], Stat)
-
def
registerBrokerInZk(zkClient: ZkClient, id: Int, host: String, port: Int, timeout: Int, jmxPort: Int): Unit
-
def
replicaAssignmentZkdata(map: Map[String, Seq[Int]]): String
-
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
-
def
toString(): String
-
def
trace(msg: ⇒ String, e: ⇒ Throwable): Unit
-
def
trace(e: ⇒ Throwable): Any
-
def
trace(msg: ⇒ String): Unit
-
def
updateEphemeralPath(client: ZkClient, path: String, data: String): Unit
-
def
updatePartitionReassignmentData(zkClient: ZkClient, partitionsToBeReassigned: Map[TopicAndPartition, Seq[Int]]): Unit
-
def
updatePersistentPath(client: ZkClient, path: String, data: String): 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