org.apache.hadoop.yarn
Class YarnUncaughtExceptionHandler

java.lang.Object
  extended by org.apache.hadoop.yarn.YarnUncaughtExceptionHandler
All Implemented Interfaces:
Thread.UncaughtExceptionHandler

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class YarnUncaughtExceptionHandler
extends Object
implements Thread.UncaughtExceptionHandler

This class is intended to be installed by calling Thread.setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler) In the main entry point. It is intended to try and cleanly shut down programs using the Yarn Event framework. Note: Right now it only will shut down the program if a Error is caught, but not any other exception. Anything else is just logged.


Constructor Summary
YarnUncaughtExceptionHandler()
           
 
Method Summary
 void uncaughtException(Thread t, Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnUncaughtExceptionHandler

public YarnUncaughtExceptionHandler()
Method Detail

uncaughtException

public void uncaughtException(Thread t,
                              Throwable e)
Specified by:
uncaughtException in interface Thread.UncaughtExceptionHandler


Copyright © 2014 Apache Software Foundation. All Rights Reserved.