object ZkUtils
Borrowed from kafka 0.8.1.1. Adapted to use curator framework. https://git-wip-us.apache.org/repos/asf?p=kafka.git;a=blob;f=core/src/main/scala/kafka/utils/ZkUtils.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ZkUtils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val AdminPath: String
- val BrokerIdsPath: String
- val BrokerTopicsPath: String
- val ConsumersPath: String
- val ControllerEpochPath: String
- val ControllerPath: String
- val DeleteTopicsPath: String
- val PreferredReplicaLeaderElectionPath: String
- val ReassignPartitionsPath: String
- val TopicConfigChangesPath: String
- val TopicConfigPath: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createPersistentPath(curator: CuratorFramework, path: String, data: Array[Byte]): Unit
Create a persistent node with the given path and data.
Create a persistent node with the given path and data. Create parents if necessary.
- def createPersistentPath(curator: CuratorFramework, path: String): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getDeleteTopicPath(topic: String): String
- def getPartitionReassignmentZkData(partitionsToBeReassigned: Map[TopicAndPartition, Seq[Int]]): String
- def getTopicConfigPath(topic: String): String
- def getTopicPartitionsPath(topic: String): String
- def getTopicPath(topic: String): String
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def readData(curator: CuratorFramework, path: String): (String, Stat)
- def readDataMaybeNull(curator: CuratorFramework, path: String): (Option[String], Stat)
-
def
replicaAssignmentZkData(map: Map[String, Seq[Int]]): String
Get JSON partition to replica map from zookeeper.
- implicit def serializeString(str: String): Array[Byte]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updatePersistentPath(curator: CuratorFramework, path: String, ba: Array[Byte], version: Int = -1): Any
Update the value of a persistent node with the given path and data.
Update the value of a persistent node with the given path and data. create parent directory if necessary. Never throw NodeExistException. Return the updated path zkVersion
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )