Class ShutdownUtil
- java.lang.Object
-
- org.apache.bookkeeper.common.util.ShutdownUtil
-
public class ShutdownUtil extends java.lang.Object
Forked from Pulsar.
-
-
Constructor Summary
Constructors Constructor Description ShutdownUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
triggerImmediateForcefulShutdown()
Triggers an immediate forceful shutdown of the current process using 1 as the status code.static void
triggerImmediateForcefulShutdown(int status)
Triggers an immediate forceful shutdown of the current process.static void
triggerImmediateForcefulShutdown(int status, boolean logging)
-
-
-
Method Detail
-
triggerImmediateForcefulShutdown
public static void triggerImmediateForcefulShutdown(int status)
Triggers an immediate forceful shutdown of the current process.- Parameters:
status
- Termination status. By convention, a nonzero status code indicates abnormal termination.- See Also:
Runtime.halt(int)
-
triggerImmediateForcefulShutdown
public static void triggerImmediateForcefulShutdown(int status, boolean logging)
-
triggerImmediateForcefulShutdown
public static void triggerImmediateForcefulShutdown()
Triggers an immediate forceful shutdown of the current process using 1 as the status code.- See Also:
Runtime.halt(int)
-
-