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 classRemoteReplicationException._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description RemoteReplicationErrorCodecodestatic Map<RemoteReplicationException._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringreason
-
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 voidclear()intcompareTo(RemoteReplicationException other)RemoteReplicationExceptiondeepCopy()booleanequals(Object that)booleanequals(RemoteReplicationException that)RemoteReplicationException._FieldsfieldForId(int fieldId)RemoteReplicationErrorCodegetCode()ObjectgetFieldValue(RemoteReplicationException._Fields field)StringgetReason()inthashCode()booleanisSet(RemoteReplicationException._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCode()Returns true if field code is set (has been assigned a value) and false otherwisebooleanisSetReason()Returns true if field reason is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)RemoteReplicationExceptionsetCode(RemoteReplicationErrorCode code)voidsetCodeIsSet(boolean value)voidsetFieldValue(RemoteReplicationException._Fields field, Object value)RemoteReplicationExceptionsetReason(String reason)voidsetReasonIsSet(boolean value)StringtoString()voidunsetCode()voidunsetReason()voidvalidate()voidwrite(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:
deepCopyin interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
clear
public void clear()
- Specified by:
clearin 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:
setFieldValuein interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
getFieldValue
public Object getFieldValue(RemoteReplicationException._Fields field)
- Specified by:
getFieldValuein 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:
isSetin interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
equals
public boolean equals(RemoteReplicationException that)
-
compareTo
public int compareTo(RemoteReplicationException other)
- Specified by:
compareToin interfaceComparable<RemoteReplicationException>
-
fieldForId
public RemoteReplicationException._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<RemoteReplicationException,RemoteReplicationException._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin 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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-