@Generated(value="Autogenerated by Thrift Compiler (0.12.0)", date="2019-05-07") public class TServerName extends Object implements org.apache.thrift.TBase<TServerName,TServerName._Fields>, Serializable, Cloneable, Comparable<TServerName>
限定符和类型 | 类和说明 |
---|---|
static class |
TServerName._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
限定符和类型 | 字段和说明 |
---|---|
String |
hostName |
static Map<TServerName._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
port |
long |
startCode |
构造器和说明 |
---|
TServerName() |
TServerName(String hostName) |
TServerName(TServerName other)
Performs a deep copy on other.
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 org.apache.thrift.TBase<TServerName,TServerName._Fields>
public void clear()
clear
在接口中 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
在接口中 org.apache.thrift.TBase<TServerName,TServerName._Fields>
public Object getFieldValue(TServerName._Fields field)
getFieldValue
在接口中 org.apache.thrift.TBase<TServerName,TServerName._Fields>
public boolean isSet(TServerName._Fields field)
isSet
在接口中 org.apache.thrift.TBase<TServerName,TServerName._Fields>
public boolean equals(TServerName that)
public int compareTo(TServerName other)
compareTo
在接口中 Comparable<TServerName>
public TServerName._Fields fieldForId(int fieldId)
fieldForId
在接口中 org.apache.thrift.TBase<TServerName,TServerName._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
在接口中 org.apache.thrift.TSerializable
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
在接口中 org.apache.thrift.TSerializable
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.