public enum Jvm extends Enum<Jvm>
Modifier and Type | Method and Description |
---|---|
static void |
checkInterrupted() |
static long |
freePhysicalMemoryOnWindowsInBytes() |
static long |
getPidMax() |
static int |
getProcessId() |
static long |
getUniqueTid()
This may or may not be the OS thread id, but should be unique across processes
|
static long |
getUniqueTid(Thread thread) |
static boolean |
is64Bit() |
static boolean |
isInternal(String className) |
static boolean |
isLinux() |
static boolean |
isMacOSX() |
static boolean |
isSolaris() |
static boolean |
isUnix() |
static boolean |
isWindows() |
static boolean |
isWindows10() |
static RuntimeException |
rethrow(Throwable t)
Utility method to support throwing checked exceptions out of the streams API
|
static void |
trimStackTrace(StringBuilder sb,
StackTraceElement... stes) |
static Jvm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Jvm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int PID_BITS
public static String TMP
public static Jvm[] values()
for (Jvm c : Jvm.values()) System.out.println(c);
public static Jvm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean is64Bit()
public static int getProcessId()
public static long getUniqueTid()
public static long getUniqueTid(Thread thread)
public static boolean isWindows()
public static boolean isWindows10()
public static boolean isMacOSX()
public static boolean isLinux()
public static boolean isUnix()
public static boolean isSolaris()
public static long getPidMax()
public static long freePhysicalMemoryOnWindowsInBytes() throws IOException
IOException
public static void checkInterrupted()
public static RuntimeException rethrow(Throwable t)
t
- the exception to rethrowpublic static void trimStackTrace(StringBuilder sb, StackTraceElement... stes)
public static boolean isInternal(String className)
Copyright © 2019. All rights reserved.