public static class QuorumPeer.QuorumServer extends Object
Modifier and Type | Field and Description |
---|---|
MultipleAddresses |
addr |
InetSocketAddress |
clientAddr |
MultipleAddresses |
electionAddr |
String |
hostname |
long |
id |
boolean |
isClientAddrFromStatic |
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) |
static String |
delimitedHostString(InetSocketAddress addr) |
boolean |
equals(Object o) |
long |
getId() |
int |
hashCode() |
void |
recreateSocketAddresses()
Performs a DNS lookup for server address and election address.
|
String |
toString() |
public MultipleAddresses addr
public MultipleAddresses electionAddr
public InetSocketAddress clientAddr
public long id
public String hostname
public QuorumPeer.LearnerType type
public boolean isClientAddrFromStatic
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 static String delimitedHostString(InetSocketAddress addr)
public void checkAddressDuplicate(QuorumPeer.QuorumServer s) throws KeeperException.BadArgumentsException
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.