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>
Event that indicates a non-recoverable error for the resource manager.
-
Constructor Summary
ConstructorsConstructorDescriptionRMFatalEvent(RMFatalEventType rmFatalEventType, Exception cause) Create a new event of the given type around the given sourceException.RMFatalEvent(RMFatalEventType rmFatalEventType, Exception cause, String message) Create a new event of the given type around the given sourceExceptionwith the given cause.RMFatalEvent(RMFatalEventType rmFatalEventType, String message) Create a new event of the given type with the given cause. -
Method Summary
Methods inherited from class org.apache.hadoop.yarn.event.AbstractEvent
getTimestamp, getType
-
Constructor Details
-
RMFatalEvent
Create a new event of the given type with the given cause.- Parameters:
rmFatalEventType- TheRMFatalEventTypeof the eventmessage- a text description of the reason for the event
-
RMFatalEvent
Create a new event of the given type around the given sourceException.- Parameters:
rmFatalEventType- TheRMFatalEventTypeof the eventcause- the source exception
-
RMFatalEvent
Create a new event of the given type around the given sourceExceptionwith the given cause.- Parameters:
rmFatalEventType- TheRMFatalEventTypeof the eventcause- the source exceptionmessage- a text description of the reason for the event
-
-
Method Details
-
getExplanation
Get a text description of the reason for the event. If a cause was, thatExceptionwill be converted to aStringand included in the result.- Returns:
- a text description of the reason for the event
-
toString
- Specified by:
toStringin interfaceorg.apache.hadoop.yarn.event.Event<RMFatalEventType>- Overrides:
toStringin classorg.apache.hadoop.yarn.event.AbstractEvent<RMFatalEventType>
-