public class Endpoint extends Object implements org.apache.thrift.TBase<Endpoint,Endpoint._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Endpoint._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
int |
ipv4 |
static Map<Endpoint._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
short |
port |
String |
service_name |
Constructor and Description |
---|
Endpoint() |
Endpoint(Endpoint other)
Performs a deep copy on other.
|
Endpoint(int ipv4,
short port,
String service_name) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(Endpoint other) |
Endpoint |
deepCopy() |
boolean |
equals(Endpoint that) |
boolean |
equals(Object that) |
Endpoint._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(Endpoint._Fields field) |
int |
getIpv4() |
short |
getPort() |
String |
getService_name() |
int |
hashCode() |
boolean |
isSet(Endpoint._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetIpv4()
Returns true if field ipv4 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 |
isSetService_name()
Returns true if field service_name is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(Endpoint._Fields field,
Object value) |
Endpoint |
setIpv4(int ipv4) |
void |
setIpv4IsSet(boolean value) |
Endpoint |
setPort(short port) |
void |
setPortIsSet(boolean value) |
Endpoint |
setService_name(String service_name) |
void |
setService_nameIsSet(boolean value) |
String |
toString() |
void |
unsetIpv4() |
void |
unsetPort() |
void |
unsetService_name() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public int ipv4
public short port
public String service_name
public static final Map<Endpoint._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Endpoint()
public Endpoint(int ipv4, short port, String service_name)
public Endpoint(Endpoint other)
public Endpoint deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Endpoint,Endpoint._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Endpoint,Endpoint._Fields>
public int getIpv4()
public Endpoint setIpv4(int ipv4)
public void unsetIpv4()
public boolean isSetIpv4()
public void setIpv4IsSet(boolean value)
public short getPort()
public Endpoint setPort(short port)
public void unsetPort()
public boolean isSetPort()
public void setPortIsSet(boolean value)
public String getService_name()
public void unsetService_name()
public boolean isSetService_name()
public void setService_nameIsSet(boolean value)
public void setFieldValue(Endpoint._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Endpoint,Endpoint._Fields>
public Object getFieldValue(Endpoint._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Endpoint,Endpoint._Fields>
public boolean isSet(Endpoint._Fields field)
isSet
in interface org.apache.thrift.TBase<Endpoint,Endpoint._Fields>
public boolean equals(Endpoint that)
public int compareTo(Endpoint other)
compareTo
in interface Comparable<Endpoint>
public Endpoint._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Endpoint,Endpoint._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Endpoint,Endpoint._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<Endpoint,Endpoint._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2014. All rights reserved.