Class ShutdownUtil


  • public class ShutdownUtil
    extends Object
    • Constructor Detail

      • ShutdownUtil

        public ShutdownUtil()
    • Method Detail

      • isShutdownInProgress

        public static boolean isShutdownInProgress()
        Determine if a JVM shutdown is in progress.
      • isIOException

        public static boolean isIOException​(Throwable e)
      • wasCausedByHadoopShutdown

        public static boolean wasCausedByHadoopShutdown​(Exception e)
        Returns:
        true if there is a possibility that the exception was caused by the hadoop shutdown hook closing the hadoop file system objects, otherwise false