public interface DistribStateManager extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
String |
createData(String path,
byte[] data,
org.apache.zookeeper.CreateMode mode) |
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) |
void |
makePath(String path) |
List<org.apache.zookeeper.OpResult> |
multi(Iterable<org.apache.zookeeper.Op> ops) |
void |
removeData(String path,
int version) |
void |
setData(String path,
byte[] data,
int version) |
boolean 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.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.KeeperExceptionInterruptedExceptionString createData(String path, byte[] data, org.apache.zookeeper.CreateMode mode) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
AlreadyExistsExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionvoid removeData(String path, int version) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementExceptionIOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionvoid 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 void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.