@InterfaceAudience.Private public class ReplicationQueueInfo extends Object
Modifier and Type | Field and Description |
---|---|
private List<ServerName> |
deadRegionServers |
private static org.slf4j.Logger |
LOG |
private String |
peerClusterZnode |
private String |
peerId |
private boolean |
queueRecovered |
Constructor and Description |
---|
ReplicationQueueInfo(String znode)
The passed znode will be either the id of the peer cluster or
the handling story of that queue in the form of id-servername-*
|
Modifier and Type | Method and Description |
---|---|
private static void |
extractDeadServersFromZNodeString(String deadServerListStr,
List<ServerName> result)
Parse dead server names from znode string servername can contain "-" such as
"ip-10-46-221-101.ec2.internal", so we need skip some "-" during parsing for the following
cases: 2-ip-10-46-221-101.ec2.internal,52170,1364333181125-<server name>-...
|
List<ServerName> |
getDeadRegionServers() |
String |
getPeerClusterZnode() |
String |
getPeerId() |
boolean |
isQueueRecovered() |
private static final org.slf4j.Logger LOG
private final String peerClusterZnode
private boolean queueRecovered
private List<ServerName> deadRegionServers
public ReplicationQueueInfo(String znode)
private static void extractDeadServersFromZNodeString(String deadServerListStr, List<ServerName> result)
public List<ServerName> getDeadRegionServers()
public String getPeerClusterZnode()
public boolean isQueueRecovered()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.