Class RMFatalEvent

java.lang.Object
org.apache.hadoop.yarn.event.AbstractEvent<RMFatalEventType>
org.apache.hadoop.yarn.server.resourcemanager.RMFatalEvent
All Implemented Interfaces:
org.apache.hadoop.yarn.event.Event<RMFatalEventType>

public class RMFatalEvent extends org.apache.hadoop.yarn.event.AbstractEvent<RMFatalEventType>
Event that indicates a non-recoverable error for the resource manager.
  • Constructor Details

    • RMFatalEvent

      public RMFatalEvent(RMFatalEventType rmFatalEventType, String message)
      Create a new event of the given type with the given cause.
      Parameters:
      rmFatalEventType - The RMFatalEventType of the event
      message - a text description of the reason for the event
    • RMFatalEvent

      public RMFatalEvent(RMFatalEventType rmFatalEventType, Exception cause)
      Create a new event of the given type around the given source Exception.
      Parameters:
      rmFatalEventType - The RMFatalEventType of the event
      cause - the source exception
    • RMFatalEvent

      public RMFatalEvent(RMFatalEventType rmFatalEventType, Exception cause, String message)
      Create a new event of the given type around the given source Exception with the given cause.
      Parameters:
      rmFatalEventType - The RMFatalEventType of the event
      cause - the source exception
      message - a text description of the reason for the event
  • Method Details

    • getExplanation

      public String getExplanation()
      Get a text description of the reason for the event. If a cause was, that Exception will be converted to a String and included in the result.
      Returns:
      a text description of the reason for the event
    • toString

      public String toString()
      Specified by:
      toString in interface org.apache.hadoop.yarn.event.Event<RMFatalEventType>
      Overrides:
      toString in class org.apache.hadoop.yarn.event.AbstractEvent<RMFatalEventType>