Interface IHostResourceInformationProvider
- All Known Implementing Classes:
HostResourceInformationProvider
public interface IHostResourceInformationProvider
Abstraction of the host information provider. Provides host(VM) specific information like memory being available, etc.
Abstraction allows to implement different strategies of available resource detection.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of logical cores available for the EDT to uselong
Gets the maximum ammount of the memory alloocated for the JVM
-
Method Details
-
getAvailableCores
int getAvailableCores()Gets the number of logical cores available for the EDT to use- Returns:
- The number of available cores, never negative
-
getJvmMaxMemory
long getJvmMaxMemory()Gets the maximum ammount of the memory alloocated for the JVM- Returns:
- The maximum ammount of the memory available for the JVM, never negative
-