public class ZkUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToString(byte[] data)
Converts a byte array from ZooKeeper into a String.
|
static List<String> |
filterByPrefix(List<String> nodes,
String... prefixes)
Filters the given node list by the given prefixes.
|
static byte[] |
stringToBytes(String str)
Converts String into a byte array using a fixed character set.
|
public static byte[] stringToBytes(String str)
str - public static String bytesToString(byte[] data)
data - public static List<String> filterByPrefix(List<String> nodes, String... prefixes)
nodes - the nodes to filterprefixes - the prefixes to include in the resultCopyright © 2012–2015 Facebook, Inc.. All rights reserved.