Class Env
- java.lang.Object
-
- org.apache.activemq.artemis.utils.Env
-
public final class Env extends java.lang.ObjectUtility that detects various properties specific to the current runtime environment, such as JVM bitness and OS type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisLinuxOs()static booleanisMacOs()static booleanisTestEnv()static booleanisWindowsOs()static intosPageSize()Return the size in bytes of a OS memory page.static voidsetTestEnv(boolean testEnv)
-
-
-
Method Detail
-
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()
-
-