Class HostResourceInformationProvider
java.lang.Object
com._1c.g5.v8.internal.resourcemanagement.HostResourceInformationProvider
- All Implemented Interfaces:
IHostResourceInformationProvider
public class HostResourceInformationProvider
extends Object
implements IHostResourceInformationProvider
Default implementation of the
IHostResourceInformationProvider that uses Runtime functions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of logical cores available for the EDT to uselongGets the maximum ammount of the memory alloocated for the JVM
-
Constructor Details
-
HostResourceInformationProvider
public HostResourceInformationProvider()
-
-
Method Details
-
getJvmMaxMemory
public long getJvmMaxMemory()Description copied from interface:IHostResourceInformationProviderGets the maximum ammount of the memory alloocated for the JVM- Specified by:
getJvmMaxMemoryin interfaceIHostResourceInformationProvider- Returns:
- The maximum ammount of the memory available for the JVM, never negative
-
getAvailableCores
public int getAvailableCores()Description copied from interface:IHostResourceInformationProviderGets the number of logical cores available for the EDT to use- Specified by:
getAvailableCoresin interfaceIHostResourceInformationProvider- Returns:
- The number of available cores, never negative
-