public class ListenerInfo extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<ListenerInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
ListenerInfo.Builder |
| Modifier and Type | Field and Description |
|---|---|
HostAddr |
host |
static int |
HOST |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
part_id |
static int |
PART_ID |
HostStatus |
status |
static int |
STATUS |
ListenerType |
type |
static int |
TYPE |
| Constructor and Description |
|---|
ListenerInfo() |
ListenerInfo(ListenerInfo other)
Performs a deep copy on other.
|
ListenerInfo(ListenerType type,
HostAddr host,
int part_id,
HostStatus status) |
| Modifier and Type | Method and Description |
|---|---|
static ListenerInfo.Builder |
builder() |
int |
compareTo(ListenerInfo other) |
ListenerInfo |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
HostAddr |
getHost() |
int |
getPart_id() |
HostStatus |
getStatus() |
ListenerType |
getType() |
int |
hashCode() |
boolean |
isSetHost() |
boolean |
isSetPart_id() |
boolean |
isSetStatus() |
boolean |
isSetType() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
ListenerInfo |
setHost(HostAddr host) |
void |
setHostIsSet(boolean __value) |
ListenerInfo |
setPart_id(int part_id) |
void |
setPart_idIsSet(boolean __value) |
ListenerInfo |
setStatus(HostStatus status) |
void |
setStatusIsSet(boolean __value) |
ListenerInfo |
setType(ListenerType type) |
void |
setTypeIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetHost() |
void |
unsetPart_id() |
void |
unsetStatus() |
void |
unsetType() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public ListenerType type
ListenerTypepublic HostAddr host
public int part_id
public HostStatus status
HostStatuspublic static final int TYPE
public static final int HOST
public static final int PART_ID
public static final int STATUS
public ListenerInfo()
public ListenerInfo(ListenerType type, HostAddr host, int part_id, HostStatus status)
public ListenerInfo(ListenerInfo other)
public static ListenerInfo.Builder builder()
public ListenerInfo deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic ListenerType getType()
ListenerTypepublic ListenerInfo setType(ListenerType type)
ListenerTypepublic void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean __value)
public HostAddr getHost()
public ListenerInfo setHost(HostAddr host)
public void unsetHost()
public boolean isSetHost()
public void setHostIsSet(boolean __value)
public int getPart_id()
public ListenerInfo setPart_id(int part_id)
public void unsetPart_id()
public boolean isSetPart_id()
public void setPart_idIsSet(boolean __value)
public HostStatus getStatus()
HostStatuspublic ListenerInfo setStatus(HostStatus status)
HostStatuspublic void unsetStatus()
public boolean isSetStatus()
public void setStatusIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(ListenerInfo other)
compareTo in interface Comparable<ListenerInfo>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.