public class PlatformUtils extends Object
| Constructor and Description |
|---|
PlatformUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isWindows()
Checks if the operating system is a Windows one.
|
static ZonedDateTime |
now() |
static int |
pid()
Returns this process ID, if available.
|
public static boolean isWindows()
true if the operating system is a Windows one, false
otherwise.public static int pid()
This implementation first tries to obtain the process ID through a JNI call; if JNI calls are not available, then it tries to obtain the process ID from the runtime JMX bean.
If none of this works, this method returns a random integer.
@NonNull public static ZonedDateTime now()
Copyright © 2017–2021 DataStax. All rights reserved.