public class PlatformInfo extends Object
| Constructor and Description |
|---|
PlatformInfo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
logDetails(org.slf4j.Logger log)
Essential information about the runtime environment.
|
static void |
logDetails(org.slf4j.Logger log,
String prefix)
Essential information about the runtime environment
|
static void |
logDetailsVerbose(org.slf4j.Logger log) |
static void |
main(String... args) |
static String |
strNum10(long x)
Create a human-friendly string for a number based on Kilo/Mega/Giga/Tera (powers of 10)
|
static String |
strNum2(long x)
Create a human-friendly string for a number based on Kibi/Mebi/Gibi/Tebi (powers of 2)
|
static String |
strNumMixed(long x)
Create a human-friendly string for a number based on Kilo/Mega/Giga/Tera (powers of 2)
|
public static void main(String... args) throws IOException
IOExceptionpublic static void logDetails(org.slf4j.Logger log)
public static void logDetails(org.slf4j.Logger log,
String prefix)
log - prefix - String to add at the start of the log message.public static void logDetailsVerbose(org.slf4j.Logger log)
public static String strNumMixed(long x)
public static String strNum10(long x)
public static String strNum2(long x)
Licensed under the Apache License, Version 2.0