Package org.apache.pulsar.common.util
Class ShutdownUtil
java.lang.Object
org.apache.pulsar.common.util.ShutdownUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
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)
-
Constructor Details
-
ShutdownUtil
public ShutdownUtil()
-
-
Method Details
-
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:
-
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:
-