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
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
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
String createData(String path, byte[] data, org.apache.zookeeper.CreateMode mode) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
void removeData(String path, int version) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
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 void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.