@ThreadSafe
@Service(value=io.fabric8.api.ZooKeeperClusterService.class)
public final class ZooKeeperClusterServiceImpl
extends io.fabric8.api.scr.AbstractComponent
implements io.fabric8.api.ZooKeeperClusterService
| Constructor and Description |
|---|
ZooKeeperClusterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCluster(List<String> containers) |
void |
addToCluster(List<String> containers,
io.fabric8.api.CreateEnsembleOptions options)
Adds the containers to the cluster.
|
void |
createCluster(List<String> containers) |
void |
createCluster(List<String> containers,
io.fabric8.api.CreateEnsembleOptions options) |
Map<String,String> |
getEnsembleConfiguration() |
List<String> |
getEnsembleContainers() |
String |
getZookeeperPassword() |
String |
getZooKeeperUrl() |
void |
removeFromCluster(List<String> containers) |
void |
removeFromCluster(List<String> containers,
io.fabric8.api.CreateEnsembleOptions options)
Removes the containers from the cluster.
|
public List<String> getEnsembleContainers()
getEnsembleContainers in interface io.fabric8.api.ZooKeeperClusterServicepublic String getZooKeeperUrl()
getZooKeeperUrl in interface io.fabric8.api.ZooKeeperClusterServicepublic String getZookeeperPassword()
getZookeeperPassword in interface io.fabric8.api.ZooKeeperClusterServicepublic Map<String,String> getEnsembleConfiguration() throws Exception
getEnsembleConfiguration in interface io.fabric8.api.ZooKeeperClusterServiceExceptionpublic void createCluster(List<String> containers)
createCluster in interface io.fabric8.api.ZooKeeperClusterServicepublic void createCluster(List<String> containers, io.fabric8.api.CreateEnsembleOptions options)
createCluster in interface io.fabric8.api.ZooKeeperClusterServicepublic void addToCluster(List<String> containers)
addToCluster in interface io.fabric8.api.ZooKeeperClusterServicepublic void addToCluster(List<String> containers, io.fabric8.api.CreateEnsembleOptions options)
addToCluster in interface io.fabric8.api.ZooKeeperClusterServicepublic void removeFromCluster(List<String> containers)
removeFromCluster in interface io.fabric8.api.ZooKeeperClusterServiceCopyright © 2011–2014 Red Hat. All rights reserved.