public class ZookeeperClusterImpl extends Object implements IZookeeperCluster
| Constructor and Description |
|---|
ZookeeperClusterImpl(String clusterName,
IPunchPlatformProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ISettingsMap |
asSettingsMap()
The Zookeeper's cluster related configuration from the 'punchplatform.properties'
|
int |
getClusterPort()
Get the Zookeeper cluster port number
|
String |
getConnectionString()
The Zookeeper connection string, including all node:port (comma separated) and the additional
root node of the punchplatform instance in the zookeeper data tree
e.g.
|
List<String> |
getHosts()
Get the hostname of cluster's servers
|
String |
getName()
The logical name of the cluster, used to reference it in the Channels configuration files
and to identify it to the user in log strings.
|
String |
getRootPath()
On a standalone this returns "/punchplatform-primary"
|
public ZookeeperClusterImpl(String clusterName, IPunchPlatformProperties properties)
clusterName - the target zookeeper cluster nameproperties - the platform propertiespublic String getName()
IZookeeperClustergetName in interface IZookeeperClusterpublic String getConnectionString()
IZookeeperClustergetConnectionString in interface IZookeeperClusterpublic String getRootPath()
IZookeeperClustergetRootPath in interface IZookeeperClusterpublic ISettingsMap asSettingsMap()
IZookeeperClusterasSettingsMap in interface IZookeeperClusterpublic List<String> getHosts()
IZookeeperClustergetHosts in interface IZookeeperClusterpublic int getClusterPort()
IZookeeperClustergetClusterPort in interface IZookeeperClusterCopyright © 2014–2023. All rights reserved.