Class ExceptionEntry
java.lang.Object
org.gridgain.internal.dcr.metastorage.ExceptionEntry
Entry for replication exception serialization.
-
Constructor Summary
ConstructorsConstructorDescriptionExceptionEntry(UUID traceId, int exceptionCode, String message, String workerNode, String failedEntry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ExceptionEntryfromByteArray(byte[] arr) Deserializes byte array to exception entry.static ExceptionEntryfromException(String nodeName, Throwable t) Builds exception entry fromThrowableinstance.inthashCode()byte[]Serializes exception entry to byte array.
-
Constructor Details
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toByteArray
public byte[] toByteArray()Serializes exception entry to byte array.- Returns:
- Byte array with serialized exception entry.
-
fromByteArray
Deserializes byte array to exception entry.- Parameters:
arr- Byte array with serialized entry.- Returns:
- Deserialized exception entry from byte array.
-
buildException
-
fromException
Builds exception entry fromThrowableinstance.- Parameters:
t- Throwable instance.- Returns:
- Exception entry instance.
-