public static class QuorumPeer.QuorumServer extends Object
Modifier and Type | Field and Description |
---|---|
InetSocketAddress |
addr |
InetSocketAddress |
clientAddr |
InetSocketAddress |
electionAddr |
String |
hostname |
long |
id |
QuorumPeer.LearnerType |
type |
Constructor and Description |
---|
QuorumServer(long id,
InetSocketAddress addr) |
QuorumServer(long id,
InetSocketAddress addr,
InetSocketAddress electionAddr) |
QuorumServer(long id,
InetSocketAddress addr,
InetSocketAddress electionAddr,
InetSocketAddress clientAddr) |
QuorumServer(long id,
InetSocketAddress addr,
InetSocketAddress electionAddr,
InetSocketAddress clientAddr,
QuorumPeer.LearnerType type) |
QuorumServer(long id,
InetSocketAddress addr,
InetSocketAddress electionAddr,
QuorumPeer.LearnerType type) |
QuorumServer(long sid,
String addressStr) |
Modifier and Type | Method and Description |
---|---|
void |
checkAddressDuplicate(QuorumPeer.QuorumServer s) |
boolean |
equals(Object o) |
long |
getId() |
int |
hashCode() |
void |
recreateSocketAddresses()
Performs a DNS lookup for server address and election address.
|
String |
toString() |
public InetSocketAddress addr
public InetSocketAddress electionAddr
public InetSocketAddress clientAddr
public long id
public String hostname
public QuorumPeer.LearnerType type
public QuorumServer(long id, InetSocketAddress addr, InetSocketAddress electionAddr, InetSocketAddress clientAddr)
public QuorumServer(long id, InetSocketAddress addr, InetSocketAddress electionAddr)
public QuorumServer(long id, InetSocketAddress addr)
public QuorumServer(long sid, String addressStr) throws QuorumPeerConfig.ConfigException
QuorumPeerConfig.ConfigException
public QuorumServer(long id, InetSocketAddress addr, InetSocketAddress electionAddr, QuorumPeer.LearnerType type)
public QuorumServer(long id, InetSocketAddress addr, InetSocketAddress electionAddr, InetSocketAddress clientAddr, QuorumPeer.LearnerType type)
public long getId()
public void recreateSocketAddresses()
public void checkAddressDuplicate(QuorumPeer.QuorumServer s) throws KeeperException.BadArgumentsException
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.