| Modifier and Type | Class and Description |
|---|---|
static interface |
RaftPeer.Add |
static class |
RaftPeer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RaftPeer[] |
emptyArray() |
boolean |
equals(Object o) |
String |
getAddress() |
String |
getAdminAddress() |
String |
getClientAddress() |
String |
getDataStreamAddress() |
RaftPeerId |
getId() |
int |
getPriority() |
org.apache.ratis.proto.RaftProtos.RaftPeerProto |
getRaftPeerProto() |
int |
hashCode() |
static RaftPeer.Builder |
newBuilder() |
static RaftPeer.Builder |
newBuilder(RaftPeer peer) |
String |
toString() |
public static RaftPeer[] emptyArray()
public static RaftPeer.Builder newBuilder()
public static RaftPeer.Builder newBuilder(RaftPeer peer)
peerpublic RaftPeerId getId()
public String getAddress()
public String getAdminAddress()
null, in which case getAddress() should be used.public String getClientAddress()
null, in which case getAddress() should be used.public String getDataStreamAddress()
public int getPriority()
public org.apache.ratis.proto.RaftProtos.RaftPeerProto getRaftPeerProto()
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.