Class DelegateZooKeeperMultiGroup<T extends NodeState>
- java.lang.Object
-
- org.apache.camel.component.zookeepermaster.group.internal.DelegateZooKeeperGroup<T>
-
- org.apache.camel.component.zookeepermaster.group.internal.DelegateZooKeeperMultiGroup<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Group<T>,MultiGroup<T>
public class DelegateZooKeeperMultiGroup<T extends NodeState> extends DelegateZooKeeperGroup<T> implements MultiGroup<T>
-
-
Constructor Summary
Constructors Constructor Description DelegateZooKeeperMultiGroup(String path, Class<T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Group<T>createGroup(org.apache.curator.framework.CuratorFramework client, String path, Class<T> clazz)booleanisMaster(String id)Check if we are the master.-
Methods inherited from class org.apache.camel.component.zookeepermaster.group.internal.DelegateZooKeeperGroup
add, close, doStart, doStop, getGroup, getLastState, isConnected, isMaster, master, members, remove, slaves, start, update, useCurator
-
-
-
-
Method Detail
-
createGroup
protected Group<T> createGroup(org.apache.curator.framework.CuratorFramework client, String path, Class<T> clazz)
- Overrides:
createGroupin classDelegateZooKeeperGroup<T extends NodeState>
-
isMaster
public boolean isMaster(String id)
Description copied from interface:MultiGroupCheck if we are the master.- Specified by:
isMasterin interfaceMultiGroup<T extends NodeState>
-
-