@ThreadSafe @Service(value=io.fabric8.api.ZooKeeperClusterService.class) public final class ZooKeeperClusterServiceImpl extends AbstractComponent implements ZooKeeperClusterService
| Constructor and Description |
|---|
ZooKeeperClusterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCluster(java.util.List<java.lang.String> containers) |
void |
addToCluster(java.util.List<java.lang.String> containers,
CreateEnsembleOptions options)
Adds the containers to the cluster.
|
void |
createCluster(java.util.List<java.lang.String> containers) |
void |
createCluster(java.util.List<java.lang.String> containers,
CreateEnsembleOptions options) |
java.util.Map<java.lang.String,java.lang.String> |
getEnsembleConfiguration() |
java.util.List<java.lang.String> |
getEnsembleContainers() |
java.lang.String |
getZookeeperPassword() |
java.lang.String |
getZooKeeperUrl() |
void |
removeFromCluster(java.util.List<java.lang.String> containers) |
void |
removeFromCluster(java.util.List<java.lang.String> containers,
CreateEnsembleOptions options)
Removes the containers from the cluster.
|
activateComponent, assertValid, deactivateComponent, isValidpublic java.util.List<java.lang.String> getEnsembleContainers()
getEnsembleContainers in interface ZooKeeperClusterServicepublic java.lang.String getZooKeeperUrl()
getZooKeeperUrl in interface ZooKeeperClusterServicepublic java.lang.String getZookeeperPassword()
getZookeeperPassword in interface ZooKeeperClusterServicepublic java.util.Map<java.lang.String,java.lang.String> getEnsembleConfiguration()
throws java.lang.Exception
getEnsembleConfiguration in interface ZooKeeperClusterServicejava.lang.Exceptionpublic void createCluster(java.util.List<java.lang.String> containers)
createCluster in interface ZooKeeperClusterServicepublic void createCluster(java.util.List<java.lang.String> containers,
CreateEnsembleOptions options)
createCluster in interface ZooKeeperClusterServicepublic void addToCluster(java.util.List<java.lang.String> containers)
addToCluster in interface ZooKeeperClusterServicepublic void addToCluster(java.util.List<java.lang.String> containers,
CreateEnsembleOptions options)
addToCluster in interface ZooKeeperClusterServicepublic void removeFromCluster(java.util.List<java.lang.String> containers)
removeFromCluster in interface ZooKeeperClusterServicepublic void removeFromCluster(java.util.List<java.lang.String> containers,
CreateEnsembleOptions options)
removeFromCluster in interface ZooKeeperClusterServiceCopyright © 2014 Red Hat. All Rights Reserved.