Package org.apache.accumulo.core.util
Class ShutdownUtil
- java.lang.Object
-
- org.apache.accumulo.core.util.ShutdownUtil
-
public class ShutdownUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ShutdownUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isIOException(Throwable e)
static boolean
isShutdownInProgress()
Determine if a JVM shutdown is in progress.static boolean
wasCausedByHadoopShutdown(Exception e)
-
-
-
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
-
-