public class DelegatingDistribStateManager extends Object implements DistribStateManager
Constructor and Description |
---|
DelegatingDistribStateManager(DistribStateManager delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
String |
createData(String path,
byte[] data,
org.apache.zookeeper.CreateMode mode)
Deprecated.
Create data (leaf) node at specified path.
|
AutoScalingConfig |
getAutoScalingConfig()
Deprecated.
|
AutoScalingConfig |
getAutoScalingConfig(org.apache.zookeeper.Watcher watcher)
Deprecated.
|
VersionedData |
getData(String path)
Deprecated.
|
VersionedData |
getData(String path,
org.apache.zookeeper.Watcher watcher)
Deprecated.
|
boolean |
hasData(String path)
Deprecated.
|
List<String> |
listData(String path)
Deprecated.
|
List<String> |
listData(String path,
org.apache.zookeeper.Watcher watcher)
Deprecated.
|
void |
makePath(String path)
Deprecated.
|
void |
makePath(String path,
byte[] data,
org.apache.zookeeper.CreateMode createMode,
boolean failOnExists)
Deprecated.
|
List<org.apache.zookeeper.OpResult> |
multi(Iterable<org.apache.zookeeper.Op> ops)
Deprecated.
|
void |
removeData(String path,
int version)
Deprecated.
|
void |
setData(String path,
byte[] data,
int version)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
listTree, removeRecursively
isClosed
public DelegatingDistribStateManager(DistribStateManager delegate)
public boolean hasData(String path) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
hasData
in interface DistribStateManager
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public List<String> listData(String path) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
listData
in interface DistribStateManager
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public List<String> listData(String path, org.apache.zookeeper.Watcher watcher) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
listData
in interface DistribStateManager
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public VersionedData getData(String path, org.apache.zookeeper.Watcher watcher) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
getData
in interface DistribStateManager
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public VersionedData getData(String path) throws NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
getData
in interface DistribStateManager
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public void makePath(String path) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
makePath
in interface DistribStateManager
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public void makePath(String path, byte[] data, org.apache.zookeeper.CreateMode createMode, boolean failOnExists) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
makePath
in interface DistribStateManager
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public String createData(String path, byte[] data, org.apache.zookeeper.CreateMode mode) throws AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
DistribStateManager
createData
in interface DistribStateManager
path
- base path name of the node.data
- data to be stored.mode
- creation mode.AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public void removeData(String path, int version) throws NoSuchElementException, NotEmptyException, IOException, BadVersionException, org.apache.zookeeper.KeeperException, InterruptedException
removeData
in interface DistribStateManager
NoSuchElementException
NotEmptyException
IOException
BadVersionException
org.apache.zookeeper.KeeperException
InterruptedException
public void setData(String path, byte[] data, int version) throws BadVersionException, NoSuchElementException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
setData
in interface DistribStateManager
BadVersionException
NoSuchElementException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public List<org.apache.zookeeper.OpResult> multi(Iterable<org.apache.zookeeper.Op> ops) throws BadVersionException, NoSuchElementException, AlreadyExistsException, IOException, org.apache.zookeeper.KeeperException, InterruptedException
multi
in interface DistribStateManager
BadVersionException
NoSuchElementException
AlreadyExistsException
IOException
org.apache.zookeeper.KeeperException
InterruptedException
public AutoScalingConfig getAutoScalingConfig(org.apache.zookeeper.Watcher watcher) throws InterruptedException, IOException
getAutoScalingConfig
in interface DistribStateManager
InterruptedException
IOException
public AutoScalingConfig getAutoScalingConfig() throws InterruptedException, IOException
getAutoScalingConfig
in interface DistribStateManager
InterruptedException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.