Package io.openlineage.client.utils
Class RuntimeUtils
- java.lang.Object
-
- io.openlineage.client.utils.RuntimeUtils
-
public class RuntimeUtils extends java.lang.Object
Class used to access static Runtime properties. Useful for testing as it can be mocked with mockStatic.
-
-
Constructor Summary
Constructors Constructor Description RuntimeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
freeMemory()
static java.util.List<java.lang.management.GarbageCollectorMXBean>
getGarbageCollectorMXBeans()
static double
getMemoryFractionUsage()
static long
maxMemory()
static long
totalMemory()
-
-
-
Method Detail
-
freeMemory
public static long freeMemory()
-
totalMemory
public static long totalMemory()
-
maxMemory
public static long maxMemory()
-
getMemoryFractionUsage
public static double getMemoryFractionUsage()
-
getGarbageCollectorMXBeans
public static java.util.List<java.lang.management.GarbageCollectorMXBean> getGarbageCollectorMXBeans()
-
-