@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-05-25") public class TServerName extends Object implements org.apache.thrift.TBase<TServerName,TServerName._Fields>, Serializable, Cloneable, Comparable<TServerName>
Modifier and Type | Class and Description |
---|---|
static class |
TServerName._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
String |
hostName |
static Map<TServerName._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
port |
long |
startCode |
Constructor and Description |
---|
TServerName() |
TServerName(String hostName) |
TServerName(TServerName other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(TServerName other) |
TServerName |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TServerName that) |
TServerName._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(TServerName._Fields field) |
String |
getHostName() |
int |
getPort() |
long |
getStartCode() |
int |
hashCode() |
boolean |
isSet(TServerName._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetHostName()
Returns true if field hostName is set (has been assigned a value) and false otherwise
|
boolean |
isSetPort()
Returns true if field port is set (has been assigned a value) and false otherwise
|
boolean |
isSetStartCode()
Returns true if field startCode is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(TServerName._Fields field,
Object value) |
TServerName |
setHostName(String hostName) |
void |
setHostNameIsSet(boolean value) |
TServerName |
setPort(int port) |
void |
setPortIsSet(boolean value) |
TServerName |
setStartCode(long startCode) |
void |
setStartCodeIsSet(boolean value) |
String |
toString() |
void |
unsetHostName() |
void |
unsetPort() |
void |
unsetStartCode() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public String hostName
public int port
public long startCode
public static final Map<TServerName._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TServerName()
public TServerName(String hostName)
public TServerName(TServerName other)
public TServerName deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TServerName,TServerName._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TServerName,TServerName._Fields>
public String getHostName()
public TServerName setHostName(String hostName)
public void unsetHostName()
public boolean isSetHostName()
public void setHostNameIsSet(boolean value)
public int getPort()
public TServerName setPort(int port)
public void unsetPort()
public boolean isSetPort()
public void setPortIsSet(boolean value)
public long getStartCode()
public TServerName setStartCode(long startCode)
public void unsetStartCode()
public boolean isSetStartCode()
public void setStartCodeIsSet(boolean value)
public void setFieldValue(TServerName._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TServerName,TServerName._Fields>
public Object getFieldValue(TServerName._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TServerName,TServerName._Fields>
public boolean isSet(TServerName._Fields field)
isSet
in interface org.apache.thrift.TBase<TServerName,TServerName._Fields>
public boolean equals(TServerName that)
public int compareTo(TServerName other)
compareTo
in interface Comparable<TServerName>
public TServerName._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TServerName,TServerName._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TServerName,TServerName._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<TServerName,TServerName._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 Cloudera. All rights reserved.