public class HostItem extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<HostItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
HostItem.Builder |
| Modifier and Type | Field and Description |
|---|---|
Map<byte[],List<Integer>> |
all_parts |
static int |
ALL_PARTS |
byte[] |
git_info_sha |
static int |
GIT_INFO_SHA |
HostAddr |
hostAddr |
static int |
HOSTADDR |
Map<byte[],List<Integer>> |
leader_parts |
static int |
LEADER_PARTS |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
HostRole |
role |
static int |
ROLE |
HostStatus |
status |
static int |
STATUS |
byte[] |
version |
static int |
VERSION |
byte[] |
zone_name |
static int |
ZONE_NAME |
| Constructor and Description |
|---|
HostItem() |
HostItem(HostAddr hostAddr,
HostStatus status,
Map<byte[],List<Integer>> leader_parts,
Map<byte[],List<Integer>> all_parts,
HostRole role,
byte[] git_info_sha) |
HostItem(HostAddr hostAddr,
HostStatus status,
Map<byte[],List<Integer>> leader_parts,
Map<byte[],List<Integer>> all_parts,
HostRole role,
byte[] git_info_sha,
byte[] zone_name,
byte[] version) |
HostItem(HostItem other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static HostItem.Builder |
builder() |
int |
compareTo(HostItem other) |
HostItem |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Map<byte[],List<Integer>> |
getAll_parts() |
Object |
getFieldValue(int fieldID) |
byte[] |
getGit_info_sha() |
HostAddr |
getHostAddr() |
Map<byte[],List<Integer>> |
getLeader_parts() |
HostRole |
getRole() |
HostStatus |
getStatus() |
byte[] |
getVersion() |
byte[] |
getZone_name() |
int |
hashCode() |
boolean |
isSetAll_parts() |
boolean |
isSetGit_info_sha() |
boolean |
isSetHostAddr() |
boolean |
isSetLeader_parts() |
boolean |
isSetRole() |
boolean |
isSetStatus() |
boolean |
isSetVersion() |
boolean |
isSetZone_name() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
HostItem |
setAll_parts(Map<byte[],List<Integer>> all_parts) |
void |
setAll_partsIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
HostItem |
setGit_info_sha(byte[] git_info_sha) |
void |
setGit_info_shaIsSet(boolean __value) |
HostItem |
setHostAddr(HostAddr hostAddr) |
void |
setHostAddrIsSet(boolean __value) |
HostItem |
setLeader_parts(Map<byte[],List<Integer>> leader_parts) |
void |
setLeader_partsIsSet(boolean __value) |
HostItem |
setRole(HostRole role) |
void |
setRoleIsSet(boolean __value) |
HostItem |
setStatus(HostStatus status) |
void |
setStatusIsSet(boolean __value) |
HostItem |
setVersion(byte[] version) |
void |
setVersionIsSet(boolean __value) |
HostItem |
setZone_name(byte[] zone_name) |
void |
setZone_nameIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetAll_parts() |
void |
unsetGit_info_sha() |
void |
unsetHostAddr() |
void |
unsetLeader_parts() |
void |
unsetRole() |
void |
unsetStatus() |
void |
unsetVersion() |
void |
unsetZone_name() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public HostAddr hostAddr
public HostStatus status
HostStatuspublic HostRole role
public byte[] git_info_sha
public byte[] zone_name
public byte[] version
public static final int HOSTADDR
public static final int STATUS
public static final int LEADER_PARTS
public static final int ALL_PARTS
public static final int ROLE
public static final int GIT_INFO_SHA
public static final int ZONE_NAME
public static final int VERSION
public HostItem()
public HostItem(HostAddr hostAddr, HostStatus status, Map<byte[],List<Integer>> leader_parts, Map<byte[],List<Integer>> all_parts, HostRole role, byte[] git_info_sha)
public HostItem(HostAddr hostAddr, HostStatus status, Map<byte[],List<Integer>> leader_parts, Map<byte[],List<Integer>> all_parts, HostRole role, byte[] git_info_sha, byte[] zone_name, byte[] version)
public HostItem(HostItem other)
public static HostItem.Builder builder()
public HostItem deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic HostAddr getHostAddr()
public void unsetHostAddr()
public boolean isSetHostAddr()
public void setHostAddrIsSet(boolean __value)
public HostStatus getStatus()
HostStatuspublic HostItem setStatus(HostStatus status)
HostStatuspublic void unsetStatus()
public boolean isSetStatus()
public void setStatusIsSet(boolean __value)
public void unsetLeader_parts()
public boolean isSetLeader_parts()
public void setLeader_partsIsSet(boolean __value)
public void unsetAll_parts()
public boolean isSetAll_parts()
public void setAll_partsIsSet(boolean __value)
public HostRole getRole()
public void unsetRole()
public boolean isSetRole()
public void setRoleIsSet(boolean __value)
public byte[] getGit_info_sha()
public HostItem 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 byte[] getZone_name()
public HostItem setZone_name(byte[] zone_name)
public void unsetZone_name()
public boolean isSetZone_name()
public void setZone_nameIsSet(boolean __value)
public byte[] getVersion()
public HostItem 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(HostItem other)
compareTo in interface Comparable<HostItem>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.