public class DelegateZooKeeperMultiGroup<T extends NodeState> extends DelegateZooKeeperGroup<T> implements MultiGroup<T>
group| Constructor and Description |
|---|
DelegateZooKeeperMultiGroup(java.lang.String path,
java.lang.Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected Group<T> |
createGroup(org.apache.curator.framework.CuratorFramework client,
java.lang.String path,
java.lang.Class<T> clazz) |
boolean |
isMaster(java.lang.String id)
Check if we are the master.
|
add, close, closeQuietly, doStart, doStop, isConnected, isMaster, master, members, remove, slaves, start, update, useCuratorpublic DelegateZooKeeperMultiGroup(java.lang.String path,
java.lang.Class<T> clazz)
protected Group<T> createGroup(org.apache.curator.framework.CuratorFramework client, java.lang.String path, java.lang.Class<T> clazz)
createGroup in class DelegateZooKeeperGroup<T extends NodeState>public boolean isMaster(java.lang.String id)
MultiGroupisMaster in interface MultiGroup<T extends NodeState>Copyright © 2016 Red Hat. All Rights Reserved.