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 SummaryConstructors
- 
Method SummaryModifier 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- 
HostResourceInformationProviderpublic HostResourceInformationProvider()
 
- 
- 
Method Details- 
getJvmMaxMemorypublic long getJvmMaxMemory()Description copied from interface:IHostResourceInformationProviderGets the maximum ammount of the memory alloocated for the JVM- Specified by:
- getJvmMaxMemoryin interface- IHostResourceInformationProvider
- Returns:
- The maximum ammount of the memory available for the JVM, never negative
 
- 
getAvailableCorespublic int getAvailableCores()Description copied from interface:IHostResourceInformationProviderGets the number of logical cores available for the EDT to use- Specified by:
- getAvailableCoresin interface- IHostResourceInformationProvider
- Returns:
- The number of available cores, never negative
 
 
-