public final class JkUtilsSystem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkUtilsSystem.Processor |
Modifier and Type | Field and Description |
---|---|
static java.io.Console |
CONSOLE |
static boolean |
IS_LINUX |
static boolean |
IS_MACOS |
static boolean |
IS_WINDOWS
Flag valuing
true if the running underlying ofSystem is
Windows. |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.nio.file.Path> |
classloaderEntries(java.net.URLClassLoader classLoader)
Returns the classpath of this classloader without mentioning classpath of
the parent classloaders.
|
static void |
disableUnsafeWarning()
On Jdk 9+, a warning is emitted while attempting to access private fields by reflection.
|
static JkUtilsSystem.Processor |
getProcessor()
Gets a
JkUtilsSystem.Processor object of the current JVM. |
static JkUtilsSystem.Processor |
getProcessor(java.lang.String value)
Gets a
JkUtilsSystem.Processor object the given value String . |
static void |
join(java.lang.Thread thread) |
static void |
sleep(long millis) |
public static final boolean IS_WINDOWS
true
if the running underlying ofSystem is
Windows.public static final boolean IS_MACOS
public static final boolean IS_LINUX
public static final java.io.Console CONSOLE
public static java.util.List<java.nio.file.Path> classloaderEntries(java.net.URLClassLoader classLoader)
public static void disableUnsafeWarning()
public static void sleep(long millis)
public static void join(java.lang.Thread thread)
public static JkUtilsSystem.Processor getProcessor()
JkUtilsSystem.Processor
object of the current JVM.
Important: The os.arch System Property returns the architecture used by the JVM not of the operating system.
JkUtilsSystem.Processor
when supported, else null
.public static JkUtilsSystem.Processor getProcessor(java.lang.String value)
JkUtilsSystem.Processor
object the given value String
. The String
must be
like a value returned by the os.arch
System Property.value
- A String
like a value returned by the os.arch
System Property.JkUtilsSystem.Processor
when it exists, else null
.