public class SendCheckpointRequest extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<SendCheckpointRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
SendCheckpointRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
long |
current_term |
static int |
CURRENT_TERM |
String |
leader_addr |
static int |
LEADER_ADDR |
int |
leader_port |
static int |
LEADER_PORT |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
part |
static int |
PART |
int |
space |
static int |
SPACE |
boolean |
success |
static int |
SUCCESS |
| Constructor and Description |
|---|
SendCheckpointRequest() |
SendCheckpointRequest(int space,
int part,
long current_term,
String leader_addr,
int leader_port,
boolean success) |
SendCheckpointRequest(SendCheckpointRequest other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static SendCheckpointRequest.Builder |
builder() |
int |
compareTo(SendCheckpointRequest other) |
SendCheckpointRequest |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
long |
getCurrent_term() |
Object |
getFieldValue(int fieldID) |
String |
getLeader_addr() |
int |
getLeader_port() |
int |
getPart() |
int |
getSpace() |
int |
hashCode() |
boolean |
isSetCurrent_term() |
boolean |
isSetLeader_addr() |
boolean |
isSetLeader_port() |
boolean |
isSetPart() |
boolean |
isSetSpace() |
boolean |
isSetSuccess() |
boolean |
isSuccess() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
SendCheckpointRequest |
setCurrent_term(long current_term) |
void |
setCurrent_termIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
SendCheckpointRequest |
setLeader_addr(String leader_addr) |
void |
setLeader_addrIsSet(boolean __value) |
SendCheckpointRequest |
setLeader_port(int leader_port) |
void |
setLeader_portIsSet(boolean __value) |
SendCheckpointRequest |
setPart(int part) |
void |
setPartIsSet(boolean __value) |
SendCheckpointRequest |
setSpace(int space) |
void |
setSpaceIsSet(boolean __value) |
SendCheckpointRequest |
setSuccess(boolean success) |
void |
setSuccessIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetCurrent_term() |
void |
unsetLeader_addr() |
void |
unsetLeader_port() |
void |
unsetPart() |
void |
unsetSpace() |
void |
unsetSuccess() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public int space
public int part
public long current_term
public String leader_addr
public int leader_port
public boolean success
public static final int SPACE
public static final int PART
public static final int CURRENT_TERM
public static final int LEADER_ADDR
public static final int LEADER_PORT
public static final int SUCCESS
public SendCheckpointRequest()
public SendCheckpointRequest(int space,
int part,
long current_term,
String leader_addr,
int leader_port,
boolean success)
public SendCheckpointRequest(SendCheckpointRequest other)
public static SendCheckpointRequest.Builder builder()
public SendCheckpointRequest 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 SendCheckpointRequest setSpace(int space)
public void unsetSpace()
public boolean isSetSpace()
public void setSpaceIsSet(boolean __value)
public int getPart()
public SendCheckpointRequest setPart(int part)
public void unsetPart()
public boolean isSetPart()
public void setPartIsSet(boolean __value)
public long getCurrent_term()
public SendCheckpointRequest setCurrent_term(long current_term)
public void unsetCurrent_term()
public boolean isSetCurrent_term()
public void setCurrent_termIsSet(boolean __value)
public String getLeader_addr()
public SendCheckpointRequest setLeader_addr(String leader_addr)
public void unsetLeader_addr()
public boolean isSetLeader_addr()
public void setLeader_addrIsSet(boolean __value)
public int getLeader_port()
public SendCheckpointRequest setLeader_port(int leader_port)
public void unsetLeader_port()
public boolean isSetLeader_port()
public void setLeader_portIsSet(boolean __value)
public boolean isSuccess()
public SendCheckpointRequest setSuccess(boolean success)
public void unsetSuccess()
public boolean isSetSuccess()
public void setSuccessIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(SendCheckpointRequest other)
compareTo in interface Comparable<SendCheckpointRequest>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 © 2024. All rights reserved.