Class NodeFailureEvent

    • Method Detail

      • errorCode

        public final NodeErrorCode errorCode()

        The error code that identifies the type of failure that occurred at the node.

        If the service returns an enum value that is not available in the current SDK version, errorCode will return NodeErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from errorCodeAsString().

        Returns:
        The error code that identifies the type of failure that occurred at the node.
        See Also:
        NodeErrorCode
      • errorCodeAsString

        public final String errorCodeAsString()

        The error code that identifies the type of failure that occurred at the node.

        If the service returns an enum value that is not available in the current SDK version, errorCode will return NodeErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from errorCodeAsString().

        Returns:
        The error code that identifies the type of failure that occurred at the node.
        See Also:
        NodeErrorCode
      • errorMessage

        public final String errorMessage()

        A descriptive message that provides details about the node failure.

        Returns:
        A descriptive message that provides details about the node failure.
      • nodeName

        public final String nodeName()

        The name of the node where the failure occurred.

        Returns:
        The name of the node where the failure occurred.
      • timestamp

        public final Instant timestamp()

        The timestamp when the node failure occurred.

        Returns:
        The timestamp when the node failure occurred.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)