public class NetAddress extends Object implements org.apache.thrift.TBase<NetAddress,NetAddress._Fields>, Serializable, Cloneable, Comparable<NetAddress>
Modifier and Type | Class and Description |
---|---|
static class |
NetAddress._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<NetAddress._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
String |
mHost |
int |
mPort |
Constructor and Description |
---|
NetAddress() |
NetAddress(NetAddress other)
Performs a deep copy on other.
|
NetAddress(String mHost,
int mPort) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(NetAddress other) |
NetAddress |
deepCopy() |
boolean |
equals(NetAddress that) |
boolean |
equals(Object that) |
NetAddress._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(NetAddress._Fields field) |
String |
getMHost() |
int |
getMPort() |
int |
hashCode() |
boolean |
isSet(NetAddress._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetMHost()
Returns true if field mHost is set (has been assigned a value) and false otherwise
|
boolean |
isSetMPort()
Returns true if field mPort is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(NetAddress._Fields field,
Object value) |
NetAddress |
setMHost(String mHost) |
void |
setMHostIsSet(boolean value) |
NetAddress |
setMPort(int mPort) |
void |
setMPortIsSet(boolean value) |
String |
toString() |
void |
unsetMHost() |
void |
unsetMPort() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public String mHost
public int mPort
public static final Map<NetAddress._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public NetAddress()
public NetAddress(String mHost, int mPort)
public NetAddress(NetAddress other)
public NetAddress deepCopy()
deepCopy
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
public String getMHost()
public NetAddress setMHost(String mHost)
public void unsetMHost()
public boolean isSetMHost()
public void setMHostIsSet(boolean value)
public int getMPort()
public NetAddress setMPort(int mPort)
public void unsetMPort()
public boolean isSetMPort()
public void setMPortIsSet(boolean value)
public void setFieldValue(NetAddress._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
public Object getFieldValue(NetAddress._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
public boolean isSet(NetAddress._Fields field)
isSet
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
public boolean equals(NetAddress that)
public int compareTo(NetAddress other)
compareTo
in interface Comparable<NetAddress>
public NetAddress._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<NetAddress,NetAddress._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2013. All rights reserved.