public class AppendLogRequest extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<AppendLogRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
AppendLogRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
long |
committed_log_id |
static int |
COMMITTED_LOG_ID |
long |
current_term |
static int |
CURRENT_TERM |
long |
last_log_id_sent |
static int |
LAST_LOG_ID_SENT |
long |
last_log_term_sent |
static int |
LAST_LOG_TERM_SENT |
String |
leader_addr |
static int |
LEADER_ADDR |
int |
leader_port |
static int |
LEADER_PORT |
List<RaftLogEntry> |
log_str_list |
static int |
LOG_STR_LIST |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
part |
static int |
PART |
int |
space |
static int |
SPACE |
| Constructor and Description |
|---|
AppendLogRequest() |
AppendLogRequest(AppendLogRequest other)
Performs a deep copy on other.
|
AppendLogRequest(int space,
int part,
long current_term,
long committed_log_id,
String leader_addr,
int leader_port,
long last_log_term_sent,
long last_log_id_sent,
List<RaftLogEntry> log_str_list) |
public int space
public int part
public long current_term
public long committed_log_id
public String leader_addr
public int leader_port
public long last_log_term_sent
public long last_log_id_sent
public List<RaftLogEntry> log_str_list
public static final int SPACE
public static final int PART
public static final int CURRENT_TERM
public static final int COMMITTED_LOG_ID
public static final int LEADER_ADDR
public static final int LEADER_PORT
public static final int LAST_LOG_TERM_SENT
public static final int LAST_LOG_ID_SENT
public static final int LOG_STR_LIST
public AppendLogRequest()
public AppendLogRequest(int space,
int part,
long current_term,
long committed_log_id,
String leader_addr,
int leader_port,
long last_log_term_sent,
long last_log_id_sent,
List<RaftLogEntry> log_str_list)
public AppendLogRequest(AppendLogRequest other)
public static AppendLogRequest.Builder builder()
public AppendLogRequest deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic int getSpace()
public AppendLogRequest setSpace(int space)
public void unsetSpace()
public boolean isSetSpace()
public void setSpaceIsSet(boolean __value)
public int getPart()
public AppendLogRequest setPart(int part)
public void unsetPart()
public boolean isSetPart()
public void setPartIsSet(boolean __value)
public long getCurrent_term()
public AppendLogRequest setCurrent_term(long current_term)
public void unsetCurrent_term()
public boolean isSetCurrent_term()
public void setCurrent_termIsSet(boolean __value)
public long getCommitted_log_id()
public AppendLogRequest setCommitted_log_id(long committed_log_id)
public void unsetCommitted_log_id()
public boolean isSetCommitted_log_id()
public void setCommitted_log_idIsSet(boolean __value)
public String getLeader_addr()
public AppendLogRequest setLeader_addr(String leader_addr)
public void unsetLeader_addr()
public boolean isSetLeader_addr()
public void setLeader_addrIsSet(boolean __value)
public int getLeader_port()
public AppendLogRequest setLeader_port(int leader_port)
public void unsetLeader_port()
public boolean isSetLeader_port()
public void setLeader_portIsSet(boolean __value)
public long getLast_log_term_sent()
public AppendLogRequest setLast_log_term_sent(long last_log_term_sent)
public void unsetLast_log_term_sent()
public boolean isSetLast_log_term_sent()
public void setLast_log_term_sentIsSet(boolean __value)
public long getLast_log_id_sent()
public AppendLogRequest setLast_log_id_sent(long last_log_id_sent)
public void unsetLast_log_id_sent()
public boolean isSetLast_log_id_sent()
public void setLast_log_id_sentIsSet(boolean __value)
public List<RaftLogEntry> getLog_str_list()
public AppendLogRequest setLog_str_list(List<RaftLogEntry> log_str_list)
public void unsetLog_str_list()
public boolean isSetLog_str_list()
public void setLog_str_listIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(AppendLogRequest other)
compareTo in interface Comparable<AppendLogRequest>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.