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 TypeMethodDescriptionint
Gets the number of logical cores available for the EDT to uselong
Gets 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:IHostResourceInformationProvider
Gets the maximum ammount of the memory alloocated for the JVM- Specified by:
getJvmMaxMemory
in interfaceIHostResourceInformationProvider
- Returns:
- The maximum ammount of the memory available for the JVM, never negative
-
getAvailableCores
public int getAvailableCores()Description copied from interface:IHostResourceInformationProvider
Gets the number of logical cores available for the EDT to use- Specified by:
getAvailableCores
in interfaceIHostResourceInformationProvider
- Returns:
- The number of available cores, never negative
-