Class ExceptionEntry

java.lang.Object
org.gridgain.internal.dcr.metastorage.ExceptionEntry

public class ExceptionEntry extends Object
Entry for replication exception serialization.
  • Constructor Details

    • ExceptionEntry

      public ExceptionEntry(UUID traceId, int exceptionCode, String message, String workerNode, String failedEntry)
      Constructor.
      Parameters:
      exceptionCode - Exception code.
      message - Exception message.
      failedEntry - Replication entry where exception is thrown.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toByteArray

      public byte[] toByteArray()
      Serializes exception entry to byte array.
      Returns:
      Byte array with serialized exception entry.
    • fromByteArray

      public static ExceptionEntry fromByteArray(byte[] arr)
      Deserializes byte array to exception entry.
      Parameters:
      arr - Byte array with serialized entry.
      Returns:
      Deserialized exception entry from byte array.
    • buildException

      public ReplicationException buildException()
    • fromException

      public static ExceptionEntry fromException(String nodeName, Throwable t)
      Builds exception entry from Throwable instance.
      Parameters:
      t - Throwable instance.
      Returns:
      Exception entry instance.