public class HadoopShutdownHookManager extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addShutdownHook(Runnable shutdownHook,
int priority)
Adds a shutdownHook with a priority, the higher the priority
the earlier will run.
|
static HadoopShutdownHookManager |
get()
Return
ShutdownHookManager singleton. |
boolean |
hasShutdownHook(Runnable shutdownHook)
Indicates if a shutdownHook is registered or not.
|
boolean |
isShutdownInProgress()
Indicates if shutdown is in progress or not.
|
boolean |
removeShutdownHook(Runnable shutdownHook)
Removes a shutdownHook.
|
public static HadoopShutdownHookManager get()
ShutdownHookManager singleton.ShutdownHookManager singleton.public void addShutdownHook(Runnable shutdownHook, int priority)
shutdownHook - shutdownHook Runnablepriority - priority of the shutdownHook.public boolean removeShutdownHook(Runnable shutdownHook)
shutdownHook - shutdownHook to remove.public boolean hasShutdownHook(Runnable shutdownHook)
shutdownHook - shutdownHook to check if registered.public boolean isShutdownInProgress()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019