Package com.linecorp.centraldogma.server
Class ZooKeeperServerConfig
java.lang.Object
com.linecorp.centraldogma.server.ZooKeeperServerConfig
Represents the address and port numbers of a ZooKeeper node.
-
Constructor Summary
ConstructorDescriptionZooKeeperServerConfig
(String host, int quorumPort, int electionPort, Integer clientPort, Integer groupId, Integer weight) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the client port number.int
Returns the election port number.boolean
groupId()
Returns the group ID to use hierarchical quorums.int
hashCode()
host()
Returns the IP address or host name of the ZooKeeper server.int
Returns the quorum port number.toString()
int
weight()
Returns the weight of the ZooKeeper server.
-
Constructor Details
-
ZooKeeperServerConfig
public ZooKeeperServerConfig(String host, int quorumPort, int electionPort, @Nullable Integer clientPort, @Nullable Integer groupId, @Nullable Integer weight) Creates a new instance.- Parameters:
host
- the IP address or host name of the ZooKeeper serverquorumPort
- the quorum port numberelectionPort
- the election port numberclientPort
- the client port number (0-65535)groupId
- the group ID to use for hierarchical quorumsweight
- the weight of the Zookeeper server
-
-
Method Details
-
host
Returns the IP address or host name of the ZooKeeper server. -
quorumPort
public int quorumPort()Returns the quorum port number. -
electionPort
public int electionPort()Returns the election port number. -
clientPort
public int clientPort()Returns the client port number. -
groupId
Returns the group ID to use hierarchical quorums. -
weight
public int weight()Returns the weight of the ZooKeeper server. -
hashCode
public int hashCode() -
equals
-
toString
-