public class AddListenerReq extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<AddListenerReq>
| Modifier and Type | Class and Description |
|---|---|
static class |
AddListenerReq.Builder |
| Modifier and Type | Field and Description |
|---|---|
HostAddr |
meta_host |
static int |
META_HOST |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
space_id |
static int |
SPACE_ID |
byte[] |
space_name |
static int |
SPACE_NAME |
List<HostAddr> |
storage_hosts |
static int |
STORAGE_HOSTS |
ListenerType |
type |
static int |
TYPE |
| Constructor and Description |
|---|
AddListenerReq() |
AddListenerReq(AddListenerReq other)
Performs a deep copy on other.
|
AddListenerReq(int space_id,
ListenerType type,
List<HostAddr> storage_hosts) |
AddListenerReq(int space_id,
ListenerType type,
List<HostAddr> storage_hosts,
HostAddr meta_host,
byte[] space_name) |
| Modifier and Type | Method and Description |
|---|---|
static AddListenerReq.Builder |
builder() |
int |
compareTo(AddListenerReq other) |
AddListenerReq |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
HostAddr |
getMeta_host() |
int |
getSpace_id() |
byte[] |
getSpace_name() |
List<HostAddr> |
getStorage_hosts() |
ListenerType |
getType() |
int |
hashCode() |
boolean |
isSetMeta_host() |
boolean |
isSetSpace_id() |
boolean |
isSetSpace_name() |
boolean |
isSetStorage_hosts() |
boolean |
isSetType() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
AddListenerReq |
setMeta_host(HostAddr meta_host) |
void |
setMeta_hostIsSet(boolean __value) |
AddListenerReq |
setSpace_id(int space_id) |
void |
setSpace_idIsSet(boolean __value) |
AddListenerReq |
setSpace_name(byte[] space_name) |
void |
setSpace_nameIsSet(boolean __value) |
AddListenerReq |
setStorage_hosts(List<HostAddr> storage_hosts) |
void |
setStorage_hostsIsSet(boolean __value) |
AddListenerReq |
setType(ListenerType type) |
void |
setTypeIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetMeta_host() |
void |
unsetSpace_id() |
void |
unsetSpace_name() |
void |
unsetStorage_hosts() |
void |
unsetType() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public int space_id
public ListenerType type
ListenerTypepublic HostAddr meta_host
public byte[] space_name
public static final int SPACE_ID
public static final int TYPE
public static final int STORAGE_HOSTS
public static final int META_HOST
public static final int SPACE_NAME
public AddListenerReq()
public AddListenerReq(int space_id,
ListenerType type,
List<HostAddr> storage_hosts)
public AddListenerReq(int space_id,
ListenerType type,
List<HostAddr> storage_hosts,
HostAddr meta_host,
byte[] space_name)
public AddListenerReq(AddListenerReq other)
public static AddListenerReq.Builder builder()
public AddListenerReq deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic int getSpace_id()
public AddListenerReq setSpace_id(int space_id)
public void unsetSpace_id()
public boolean isSetSpace_id()
public void setSpace_idIsSet(boolean __value)
public ListenerType getType()
ListenerTypepublic AddListenerReq setType(ListenerType type)
ListenerTypepublic void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean __value)
public AddListenerReq setStorage_hosts(List<HostAddr> storage_hosts)
public void unsetStorage_hosts()
public boolean isSetStorage_hosts()
public void setStorage_hostsIsSet(boolean __value)
public HostAddr getMeta_host()
public AddListenerReq setMeta_host(HostAddr meta_host)
public void unsetMeta_host()
public boolean isSetMeta_host()
public void setMeta_hostIsSet(boolean __value)
public byte[] getSpace_name()
public AddListenerReq setSpace_name(byte[] space_name)
public void unsetSpace_name()
public boolean isSetSpace_name()
public void setSpace_nameIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(AddListenerReq other)
compareTo in interface Comparable<AddListenerReq>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 © 2024. All rights reserved.