|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hive.common.util.ShutdownHookManager
public class ShutdownHookManager
The ShutdownHookManager
enables running shutdownHook
in a deterministic order, higher priority first.
Method Summary | |
---|---|
static void |
addShutdownHook(Runnable shutdownHook,
int priority)
Adds a shutdownHook with a priority, the higher the priority the earlier will run. |
static boolean |
hasShutdownHook(Runnable shutdownHook)
Indicates if a shutdownHook is registered or not. |
boolean |
hasShutdownHookInternal(Runnable shutdownHook)
|
static boolean |
isShutdownInProgress()
Indicates if shutdown is in progress or not. |
static boolean |
removeShutdownHook(Runnable shutdownHook)
Removes a shutdownHook. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addShutdownHook(Runnable shutdownHook, int priority)
shutdownHook
- shutdownHook Runnable
priority
- priority of the shutdownHook.public static boolean removeShutdownHook(Runnable shutdownHook)
shutdownHook
- shutdownHook to remove.
public static boolean hasShutdownHook(Runnable shutdownHook)
shutdownHook
- shutdownHook to check if registered.
public boolean hasShutdownHookInternal(Runnable shutdownHook)
public static boolean isShutdownInProgress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |