public class ServiceInfo extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<ServiceInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceInfo.Builder |
| Modifier and Type | Field and Description |
|---|---|
HostAddr |
addr |
static int |
ADDR |
DirInfo |
dir |
static int |
DIR |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
HostRole |
role |
static int |
ROLE |
| Constructor and Description |
|---|
ServiceInfo() |
ServiceInfo(DirInfo dir,
HostAddr addr,
HostRole role) |
ServiceInfo(ServiceInfo other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceInfo.Builder |
builder() |
int |
compareTo(ServiceInfo other) |
ServiceInfo |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
HostAddr |
getAddr() |
DirInfo |
getDir() |
Object |
getFieldValue(int fieldID) |
HostRole |
getRole() |
int |
hashCode() |
boolean |
isSetAddr() |
boolean |
isSetDir() |
boolean |
isSetRole() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
ServiceInfo |
setAddr(HostAddr addr) |
void |
setAddrIsSet(boolean __value) |
ServiceInfo |
setDir(DirInfo dir) |
void |
setDirIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
ServiceInfo |
setRole(HostRole role) |
void |
setRoleIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetAddr() |
void |
unsetDir() |
void |
unsetRole() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public DirInfo dir
public HostAddr addr
public static final int DIR
public static final int ADDR
public static final int ROLE
public ServiceInfo()
public ServiceInfo(ServiceInfo other)
public static ServiceInfo.Builder builder()
public ServiceInfo deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic DirInfo getDir()
public ServiceInfo setDir(DirInfo dir)
public void unsetDir()
public boolean isSetDir()
public void setDirIsSet(boolean __value)
public HostAddr getAddr()
public ServiceInfo setAddr(HostAddr addr)
public void unsetAddr()
public boolean isSetAddr()
public void setAddrIsSet(boolean __value)
public ServiceInfo setRole(HostRole role)
HostRolepublic void unsetRole()
public boolean isSetRole()
public void setRoleIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(ServiceInfo other)
compareTo in interface Comparable<ServiceInfo>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.