Class ReadOnlyZKClient
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ReadOnlyZKClient
- All Implemented Interfaces:
Closeable,AutoCloseable
A very simple read only zookeeper implementation without watcher support.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ReadOnlyZKClient.Taskprivate final AtomicBooleanprivate final Stringprivate static final intprivate static final intprivate static final intprivate static final EnumSet<org.apache.zookeeper.KeeperException.Code>static final Stringprivate final intprivate static final org.slf4j.Loggerprivate final intprivate intstatic final Stringstatic final Stringprivate final intprivate final intprivate final DelayQueue<ReadOnlyZKClient.Task>private final org.apache.zookeeper.client.ZKClientConfig(package private) org.apache.zookeeper.ZooKeeper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidcloseZk()CompletableFuture<org.apache.zookeeper.data.Stat>CompletableFuture<byte[]>private StringgetId()private org.apache.zookeeper.ZooKeepergetZk()private voidrun()
-
Field Details
-
LOG
-
RECOVERY_RETRY
- See Also:
-
DEFAULT_RECOVERY_RETRY
- See Also:
-
RECOVERY_RETRY_INTERVAL_MILLIS
- See Also:
-
DEFAULT_RECOVERY_RETRY_INTERVAL_MILLIS
- See Also:
-
KEEPALIVE_MILLIS
- See Also:
-
DEFAULT_KEEPALIVE_MILLIS
- See Also:
-
FAIL_FAST_CODES
-
connectString
-
sessionTimeoutMs
-
maxRetries
-
retryIntervalMs
-
keepAliveTimeMs
-
zkClientConfig
-
CLOSE
-
tasks
-
closed
-
zookeeper
org.apache.zookeeper.ZooKeeper zookeeper -
pendingRequests
-
-
Constructor Details
-
ReadOnlyZKClient
-
-
Method Details
-
getId
-
get
-
exists
-
list
-
closeZk
-
getZk
- Throws:
IOException
-
run
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getConnectString
-