Class RemoteReplicationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.thrift.TException
-
- org.apache.accumulo.core.replication.thrift.RemoteReplicationException
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<RemoteReplicationException>
,org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
,org.apache.thrift.TSerializable
public class RemoteReplicationException extends org.apache.thrift.TException implements org.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>, Serializable, Cloneable, Comparable<RemoteReplicationException>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteReplicationException._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description RemoteReplicationErrorCode
code
static Map<RemoteReplicationException._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
String
reason
-
Constructor Summary
Constructors Constructor Description RemoteReplicationException()
RemoteReplicationException(RemoteReplicationErrorCode code, String reason)
RemoteReplicationException(RemoteReplicationException other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 otherwiseboolean
isSetCode()
Returns true if field code is set (has been assigned a value) and false otherwiseboolean
isSetReason()
Returns true if field reason is set (has been assigned a value) and false otherwisevoid
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)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
code
public RemoteReplicationErrorCode code
- See Also:
RemoteReplicationErrorCode
-
reason
public String reason
-
metaDataMap
public static final Map<RemoteReplicationException._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
RemoteReplicationException
public RemoteReplicationException()
-
RemoteReplicationException
public RemoteReplicationException(RemoteReplicationErrorCode code, String reason)
-
RemoteReplicationException
public RemoteReplicationException(RemoteReplicationException other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public RemoteReplicationException deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
getCode
public RemoteReplicationErrorCode getCode()
- See Also:
RemoteReplicationErrorCode
-
setCode
public RemoteReplicationException setCode(RemoteReplicationErrorCode code)
- See Also:
RemoteReplicationErrorCode
-
unsetCode
public void unsetCode()
-
isSetCode
public boolean isSetCode()
Returns true if field code is set (has been assigned a value) and false otherwise
-
setCodeIsSet
public void setCodeIsSet(boolean value)
-
getReason
public String getReason()
-
setReason
public RemoteReplicationException setReason(String reason)
-
unsetReason
public void unsetReason()
-
isSetReason
public boolean isSetReason()
Returns true if field reason is set (has been assigned a value) and false otherwise
-
setReasonIsSet
public void setReasonIsSet(boolean value)
-
setFieldValue
public void setFieldValue(RemoteReplicationException._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
getFieldValue
public Object getFieldValue(RemoteReplicationException._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
isSet
public boolean isSet(RemoteReplicationException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
equals
public boolean equals(RemoteReplicationException that)
-
compareTo
public int compareTo(RemoteReplicationException other)
- Specified by:
compareTo
in interfaceComparable<RemoteReplicationException>
-
fieldForId
public RemoteReplicationException._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-