public class HBReq extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<HBReq>
| Modifier and Type | Class and Description |
|---|---|
static class |
HBReq.Builder |
| Modifier and Type | Field and Description |
|---|---|
long |
cluster_id |
static int |
CLUSTER_ID |
DirInfo |
dir |
static int |
DIR |
Map<Integer,Map<byte[],PartitionList>> |
disk_parts |
static int |
DISK_PARTS |
byte[] |
git_info_sha |
static int |
GIT_INFO_SHA |
HostAddr |
host |
static int |
HOST |
Map<Integer,List<LeaderInfo>> |
leader_partIds |
static int |
LEADER_PARTIDS |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
HostRole |
role |
static int |
ROLE |
byte[] |
version |
static int |
VERSION |
| Constructor and Description |
|---|
HBReq() |
HBReq(HBReq other)
Performs a deep copy on other.
|
HBReq(HostRole role,
HostAddr host,
long cluster_id,
byte[] git_info_sha) |
HBReq(HostRole role,
HostAddr host,
long cluster_id,
Map<Integer,List<LeaderInfo>> leader_partIds,
byte[] git_info_sha,
Map<Integer,Map<byte[],PartitionList>> disk_parts,
DirInfo dir,
byte[] version) |
| Modifier and Type | Method and Description |
|---|---|
static HBReq.Builder |
builder() |
int |
compareTo(HBReq other) |
HBReq |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
long |
getCluster_id() |
DirInfo |
getDir() |
Map<Integer,Map<byte[],PartitionList>> |
getDisk_parts() |
Object |
getFieldValue(int fieldID) |
byte[] |
getGit_info_sha() |
HostAddr |
getHost() |
Map<Integer,List<LeaderInfo>> |
getLeader_partIds() |
HostRole |
getRole() |
byte[] |
getVersion() |
int |
hashCode() |
boolean |
isSetCluster_id() |
boolean |
isSetDir() |
boolean |
isSetDisk_parts() |
boolean |
isSetGit_info_sha() |
boolean |
isSetHost() |
boolean |
isSetLeader_partIds() |
boolean |
isSetRole() |
boolean |
isSetVersion() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
HBReq |
setCluster_id(long cluster_id) |
void |
setCluster_idIsSet(boolean __value) |
HBReq |
setDir(DirInfo dir) |
void |
setDirIsSet(boolean __value) |
HBReq |
setDisk_parts(Map<Integer,Map<byte[],PartitionList>> disk_parts) |
void |
setDisk_partsIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
HBReq |
setGit_info_sha(byte[] git_info_sha) |
void |
setGit_info_shaIsSet(boolean __value) |
HBReq |
setHost(HostAddr host) |
void |
setHostIsSet(boolean __value) |
HBReq |
setLeader_partIds(Map<Integer,List<LeaderInfo>> leader_partIds) |
void |
setLeader_partIdsIsSet(boolean __value) |
HBReq |
setRole(HostRole role) |
void |
setRoleIsSet(boolean __value) |
HBReq |
setVersion(byte[] version) |
void |
setVersionIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetCluster_id() |
void |
unsetDir() |
void |
unsetDisk_parts() |
void |
unsetGit_info_sha() |
void |
unsetHost() |
void |
unsetLeader_partIds() |
void |
unsetRole() |
void |
unsetVersion() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public HostAddr host
public long cluster_id
public Map<Integer,List<LeaderInfo>> leader_partIds
public byte[] git_info_sha
public Map<Integer,Map<byte[],PartitionList>> disk_parts
public DirInfo dir
public byte[] version
public static final int ROLE
public static final int HOST
public static final int CLUSTER_ID
public static final int LEADER_PARTIDS
public static final int GIT_INFO_SHA
public static final int DISK_PARTS
public static final int DIR
public static final int VERSION
public HBReq()
public HBReq(HostRole role, HostAddr host, long cluster_id, Map<Integer,List<LeaderInfo>> leader_partIds, byte[] git_info_sha, Map<Integer,Map<byte[],PartitionList>> disk_parts, DirInfo dir, byte[] version)
public HBReq(HBReq other)
public static HBReq.Builder builder()
public HBReq deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic void unsetRole()
public boolean isSetRole()
public void setRoleIsSet(boolean __value)
public HostAddr getHost()
public void unsetHost()
public boolean isSetHost()
public void setHostIsSet(boolean __value)
public long getCluster_id()
public HBReq setCluster_id(long cluster_id)
public void unsetCluster_id()
public boolean isSetCluster_id()
public void setCluster_idIsSet(boolean __value)
public Map<Integer,List<LeaderInfo>> getLeader_partIds()
public HBReq setLeader_partIds(Map<Integer,List<LeaderInfo>> leader_partIds)
public void unsetLeader_partIds()
public boolean isSetLeader_partIds()
public void setLeader_partIdsIsSet(boolean __value)
public byte[] getGit_info_sha()
public HBReq setGit_info_sha(byte[] git_info_sha)
public void unsetGit_info_sha()
public boolean isSetGit_info_sha()
public void setGit_info_shaIsSet(boolean __value)
public Map<Integer,Map<byte[],PartitionList>> getDisk_parts()
public HBReq setDisk_parts(Map<Integer,Map<byte[],PartitionList>> disk_parts)
public void unsetDisk_parts()
public boolean isSetDisk_parts()
public void setDisk_partsIsSet(boolean __value)
public DirInfo getDir()
public void unsetDir()
public boolean isSetDir()
public void setDirIsSet(boolean __value)
public byte[] getVersion()
public HBReq setVersion(byte[] version)
public void unsetVersion()
public boolean isSetVersion()
public void setVersionIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(HBReq other)
compareTo in interface Comparable<HBReq>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.