public interface DistribStateManager extends SolrCloseable
| Modifier and Type | Method and Description |
|---|---|
String |
createData(String path,
byte[] data,
org.apache.zookeeper.CreateMode mode)
Create data (leaf) node at specified path.
|
default AutoScalingConfig |
getAutoScalingConfig() |
AutoScalingConfig |
getAutoScalingConfig(org.apache.zookeeper.Watcher watcher) |
default VersionedData |
getData(String path) |
VersionedData |
getData(String path,
org.apache.zookeeper.Watcher watcher) |
default PerReplicaStates |
getReplicaStates(String path) |
boolean |
hasData(String path) |
List<String> |
listData(String path) |
List<String> |
listData(String path,
org.apache.zookeeper.Watcher watcher) |
default List<String> |
listTree(String root)
List a subtree including the root path, using breadth-first traversal.
|
void |
makePath(String path) |
void |
makePath(String path,
byte[] data,
org.apache.zookeeper.CreateMode createMode,
boolean failOnExists) |
List<org.apache.zookeeper.OpResult> |
multi(Iterable<org.apache.zookeeper.Op> ops) |
void |
removeData(String path,
int version) |
default void |
removeRecursively(String root,
boolean ignoreMissing,
boolean includeRoot)
Remove data recursively.
|
void |
setData(String path,
byte[] data,
int version) |
isClosedboolean hasData(String path) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionList<String> listData(String path) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionList<String> listData(String path, org.apache.zookeeper.Watcher watcher) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionVersionedData getData(String path, org.apache.zookeeper.Watcher watcher) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptiondefault VersionedData getData(String path) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionvoid makePath(String path) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
AlreadyExistsExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionvoid makePath(String path, byte[] data, org.apache.zookeeper.CreateMode createMode, boolean failOnExists) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
AlreadyExistsExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionString createData(String path, byte[] data, org.apache.zookeeper.CreateMode mode) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
path - base path name of the node.data - data to be stored.mode - creation mode.AlreadyExistsExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionvoid removeData(String path, int version) throws NoSuchElementException, IOException, NotEmptyException, org.apache.zookeeper.KeeperException, InterruptedException, BadVersionException
NoSuchElementExceptionIOExceptionNotEmptyExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionBadVersionExceptionvoid setData(String path, byte[] data, int version) throws BadVersionException, NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
BadVersionExceptionNoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionList<org.apache.zookeeper.OpResult> multi(Iterable<org.apache.zookeeper.Op> ops) throws BadVersionException, NoSuchElementException, AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
BadVersionExceptionNoSuchElementExceptionAlreadyExistsExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionAutoScalingConfig getAutoScalingConfig(org.apache.zookeeper.Watcher watcher) throws InterruptedException, IOException
InterruptedExceptionIOExceptiondefault AutoScalingConfig getAutoScalingConfig() throws InterruptedException, IOException
InterruptedExceptionIOExceptiondefault List<String> listTree(String root) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
root - root pathNoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptiondefault PerReplicaStates getReplicaStates(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptiondefault void removeRecursively(String root, boolean ignoreMissing, boolean includeRoot) throws NoSuchElementException, IOException, NotEmptyException, org.apache.zookeeper.KeeperException, InterruptedException, BadVersionException
root - root pathignoreMissing - ignore errors if root or any children path is missingincludeRoot - when true delete also the root pathNoSuchElementExceptionIOExceptionNotEmptyExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionBadVersionExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.