public class ZkClientUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ZkClientUtils.ZkVersion |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
OVERWRITE_HOSTNAME_SYSTEM_PROPERTY |
static ZkClientUtils.ZkVersion |
zkVersion |
| 限定符和类型 | 方法和说明 |
|---|---|
static RuntimeException |
convertToRuntimeException(Throwable e) |
static String |
getLocalhostName() |
static boolean |
isPortFree(int port) |
static String |
leadingZeros(long number,
int numberOfLeadingZeros) |
static void |
retainInterruptFlag(Throwable catchedException)
This sets the interrupt flag if the catched exception was an
InterruptedException. |
static void |
rethrowInterruptedException(Throwable e) |
public static final ZkClientUtils.ZkVersion zkVersion
public static RuntimeException convertToRuntimeException(Throwable e)
public static void retainInterruptFlag(Throwable catchedException)
InterruptedException. Catching such an exception always clears
the interrupt flag.catchedException - The catched exception.public static void rethrowInterruptedException(Throwable e) throws InterruptedException
public static String leadingZeros(long number, int numberOfLeadingZeros)
public static boolean isPortFree(int port)
public static String getLocalhostName()
Copyright © 2019. All rights reserved.