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()
IZookeeperCluster
getName
in interface IZookeeperCluster
public String getConnectionString()
IZookeeperCluster
getConnectionString
in interface IZookeeperCluster
public String getRootPath()
IZookeeperCluster
getRootPath
in interface IZookeeperCluster
public ISettingsMap asSettingsMap()
IZookeeperCluster
asSettingsMap
in interface IZookeeperCluster
public List<String> getHosts()
IZookeeperCluster
getHosts
in interface IZookeeperCluster
public int getClusterPort()
IZookeeperCluster
getClusterPort
in interface IZookeeperCluster
Copyright © 2014–2023. All rights reserved.