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) |
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) |
isClosed
boolean hasData(String path) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
List<String> listData(String path) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
List<String> listData(String path, org.apache.zookeeper.Watcher watcher) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
VersionedData getData(String path, org.apache.zookeeper.Watcher watcher) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
default VersionedData getData(String path) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
void makePath(String path) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
void makePath(String path, byte[] data, org.apache.zookeeper.CreateMode createMode, boolean failOnExists) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
String 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.AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
void removeData(String path, int version) throws NoSuchElementException, IOException, NotEmptyException, org.apache.zookeeper.KeeperException, InterruptedException, BadVersionException
NoSuchElementException
IOException
NotEmptyException
org.apache.zookeeper.KeeperException
InterruptedException
BadVersionException
void setData(String path, byte[] data, int version) throws BadVersionException, NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
BadVersionException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
List<org.apache.zookeeper.OpResult> multi(Iterable<org.apache.zookeeper.Op> ops) throws BadVersionException, NoSuchElementException, AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
BadVersionException
NoSuchElementException
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
AutoScalingConfig getAutoScalingConfig(org.apache.zookeeper.Watcher watcher) throws InterruptedException, IOException
InterruptedException
IOException
default AutoScalingConfig getAutoScalingConfig() throws InterruptedException, IOException
InterruptedException
IOException
default List<String> listTree(String root) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
root
- root pathNoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
default 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 pathNoSuchElementException
IOException
NotEmptyException
org.apache.zookeeper.KeeperException
InterruptedException
BadVersionException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.