public class RemoteReplicationException extends org.apache.thrift.TException implements org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>, Serializable, Cloneable, Comparable<RemoteReplicationException>
Modifier and Type | Class and Description |
---|---|
static class |
RemoteReplicationException._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
RemoteReplicationErrorCode |
code |
static Map<RemoteReplicationException._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
String |
reason |
Constructor and Description |
---|
RemoteReplicationException() |
RemoteReplicationException(RemoteReplicationErrorCode code,
String reason) |
RemoteReplicationException(RemoteReplicationException other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(RemoteReplicationException other) |
RemoteReplicationException |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(RemoteReplicationException that) |
RemoteReplicationException._Fields |
fieldForId(int fieldId) |
RemoteReplicationErrorCode |
getCode() |
Object |
getFieldValue(RemoteReplicationException._Fields field) |
String |
getReason() |
int |
hashCode() |
boolean |
isSet(RemoteReplicationException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCode()
Returns true if field code is set (has been assigned a value) and false otherwise
|
boolean |
isSetReason()
Returns true if field reason is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
RemoteReplicationException |
setCode(RemoteReplicationErrorCode code) |
void |
setCodeIsSet(boolean value) |
void |
setFieldValue(RemoteReplicationException._Fields field,
Object value) |
RemoteReplicationException |
setReason(String reason) |
void |
setReasonIsSet(boolean value) |
String |
toString() |
void |
unsetCode() |
void |
unsetReason() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public RemoteReplicationErrorCode code
RemoteReplicationErrorCode
public String reason
public static final Map<RemoteReplicationException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public RemoteReplicationException()
public RemoteReplicationException(RemoteReplicationErrorCode code, String reason)
public RemoteReplicationException(RemoteReplicationException other)
public RemoteReplicationException deepCopy()
deepCopy
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
public RemoteReplicationErrorCode getCode()
RemoteReplicationErrorCode
public RemoteReplicationException setCode(RemoteReplicationErrorCode code)
RemoteReplicationErrorCode
public void unsetCode()
public boolean isSetCode()
public void setCodeIsSet(boolean value)
public String getReason()
public RemoteReplicationException setReason(String reason)
public void unsetReason()
public boolean isSetReason()
public void setReasonIsSet(boolean value)
public void setFieldValue(RemoteReplicationException._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
public Object getFieldValue(RemoteReplicationException._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
public boolean isSet(RemoteReplicationException._Fields field)
isSet
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
public boolean equals(RemoteReplicationException that)
public int compareTo(RemoteReplicationException other)
compareTo
in interface Comparable<RemoteReplicationException>
public RemoteReplicationException._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._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<RemoteReplicationException,RemoteReplicationException._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.