Class MemoryInfoProviderFromRuntime
- java.lang.Object
-
- net.snowflake.ingest.streaming.internal.MemoryInfoProviderFromRuntime
-
- All Implemented Interfaces:
MemoryInfoProvider
public class MemoryInfoProviderFromRuntime extends Object implements MemoryInfoProvider
Reads memory information from JVM runtime
-
-
Constructor Summary
Constructors Constructor Description MemoryInfoProviderFromRuntime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFreeMemory()
long
getMaxMemory()
long
getTotalMemory()
-
-
-
Method Detail
-
getMaxMemory
public long getMaxMemory()
- Specified by:
getMaxMemory
in interfaceMemoryInfoProvider
- Returns:
- Max memory the JVM can allocate
-
getTotalMemory
public long getTotalMemory()
- Specified by:
getTotalMemory
in interfaceMemoryInfoProvider
- Returns:
- Total allocated JVM memory so far
-
getFreeMemory
public long getFreeMemory()
- Specified by:
getFreeMemory
in interfaceMemoryInfoProvider
- Returns:
- Free JVM memory
-
-