public class HostAddr extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<HostAddr>
| Modifier and Type | Class and Description |
|---|---|
static class |
HostAddr.Builder |
| Modifier and Type | Field and Description |
|---|---|
String |
host |
static int |
HOST |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
port |
static int |
PORT |
| Constructor and Description |
|---|
HostAddr() |
HostAddr(HostAddr other)
Performs a deep copy on other.
|
HostAddr(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
static HostAddr.Builder |
builder() |
int |
compareTo(HostAddr other) |
HostAddr |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
String |
getHost() |
int |
getPort() |
int |
hashCode() |
boolean |
isSetHost() |
boolean |
isSetPort() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
HostAddr |
setHost(String host) |
void |
setHostIsSet(boolean __value) |
HostAddr |
setPort(int port) |
void |
setPortIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetHost() |
void |
unsetPort() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public String host
public int port
public static final int HOST
public static final int PORT
public HostAddr()
public HostAddr(String host, int port)
public HostAddr(HostAddr other)
public static HostAddr.Builder builder()
public HostAddr deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic String getHost()
public void unsetHost()
public boolean isSetHost()
public void setHostIsSet(boolean __value)
public int getPort()
public HostAddr setPort(int port)
public void unsetPort()
public boolean isSetPort()
public void setPortIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(HostAddr other)
compareTo in interface Comparable<HostAddr>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.