Class Env
java.lang.Object
org.apache.activemq.artemis.utils.Env
Utility that detects various properties specific to the current runtime environment, such as JVM bitness and OS
type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanisMacOs()static booleanstatic booleanstatic intReturn the size in bytes of a OS memory page.static voidsetTestEnv(boolean testEnv)
-
Method Details
-
osPageSize
public static int osPageSize()Return the size in bytes of a OS memory page. This value will always be a power of two. -
isTestEnv
public static boolean isTestEnv() -
setTestEnv
public static void setTestEnv(boolean testEnv) -
isLinuxOs
public static boolean isLinuxOs() -
isMacOs
public static boolean isMacOs() -
isWindowsOs
public static boolean isWindowsOs()
-