Package io.deephaven.server.runner
Class SafetyChecks
java.lang.Object
io.deephaven.server.runner.SafetyChecks
Deephaven safety checks.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
check()
Applies a set of safety checks ifisEnabled()
.static boolean
Checks whether safety checks are enabled.
-
Field Details
-
SAFETY_CHECKS_PROPERTY
- See Also:
-
SAFETY_CHECKS_ENV
- See Also:
-
-
Constructor Details
-
SafetyChecks
public SafetyChecks()
-
-
Method Details
-
isEnabled
public static boolean isEnabled()Checks whether safety checks are enabled. This parses the system property "deephaven.safetyChecks" if it exists, otherwise it parses the environment variable "DEEPHAVEN_SAFETY_CHECKS" if it exists, otherwise defaults totrue
. Disabling safety checks is not recommended.- Returns:
- if safety checks are enabled.
-
check
public static void check()Applies a set of safety checks ifisEnabled()
.- See Also:
-