public class HBResp extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<HBResp>
| Modifier and Type | Class and Description |
|---|---|
static class |
HBResp.Builder |
| Modifier and Type | Field and Description |
|---|---|
long |
cluster_id |
static int |
CLUSTER_ID |
ErrorCode |
code |
static int |
CODE |
long |
last_update_time_in_ms |
static int |
LAST_UPDATE_TIME_IN_MS |
HostAddr |
leader |
static int |
LEADER |
int |
meta_version |
static int |
META_VERSION |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
HBResp() |
HBResp(ErrorCode code,
HostAddr leader,
long cluster_id,
long last_update_time_in_ms,
int meta_version) |
HBResp(HBResp other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static HBResp.Builder |
builder() |
int |
compareTo(HBResp other) |
HBResp |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
long |
getCluster_id() |
ErrorCode |
getCode() |
Object |
getFieldValue(int fieldID) |
long |
getLast_update_time_in_ms() |
HostAddr |
getLeader() |
int |
getMeta_version() |
int |
hashCode() |
boolean |
isSetCluster_id() |
boolean |
isSetCode() |
boolean |
isSetLast_update_time_in_ms() |
boolean |
isSetLeader() |
boolean |
isSetMeta_version() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
HBResp |
setCluster_id(long cluster_id) |
void |
setCluster_idIsSet(boolean __value) |
HBResp |
setCode(ErrorCode code) |
void |
setCodeIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
HBResp |
setLast_update_time_in_ms(long last_update_time_in_ms) |
void |
setLast_update_time_in_msIsSet(boolean __value) |
HBResp |
setLeader(HostAddr leader) |
void |
setLeaderIsSet(boolean __value) |
HBResp |
setMeta_version(int meta_version) |
void |
setMeta_versionIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetCluster_id() |
void |
unsetCode() |
void |
unsetLast_update_time_in_ms() |
void |
unsetLeader() |
void |
unsetMeta_version() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public HostAddr leader
public long cluster_id
public long last_update_time_in_ms
public int meta_version
public static final int CODE
public static final int LEADER
public static final int CLUSTER_ID
public static final int LAST_UPDATE_TIME_IN_MS
public static final int META_VERSION
public HBResp()
public HBResp(ErrorCode code, HostAddr leader, long cluster_id, long last_update_time_in_ms, int meta_version)
public HBResp(HBResp other)
public static HBResp.Builder builder()
public HBResp deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic void unsetCode()
public boolean isSetCode()
public void setCodeIsSet(boolean __value)
public HostAddr getLeader()
public void unsetLeader()
public boolean isSetLeader()
public void setLeaderIsSet(boolean __value)
public long getCluster_id()
public HBResp setCluster_id(long cluster_id)
public void unsetCluster_id()
public boolean isSetCluster_id()
public void setCluster_idIsSet(boolean __value)
public long getLast_update_time_in_ms()
public HBResp setLast_update_time_in_ms(long last_update_time_in_ms)
public void unsetLast_update_time_in_ms()
public boolean isSetLast_update_time_in_ms()
public void setLast_update_time_in_msIsSet(boolean __value)
public int getMeta_version()
public HBResp setMeta_version(int meta_version)
public void unsetMeta_version()
public boolean isSetMeta_version()
public void setMeta_versionIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(HBResp other)
compareTo in interface Comparable<HBResp>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.