public class CPULimitException extends LicenseException
An exception indicating that the license used with the software does not support the number of runtime cores being used.
A license may contains a 'core limit' which specifies the maximum runtime cores which the DeltaXML product is allowed to use.
The definition of a runtime core is whatever is returned by the Runtime.availableProcessors()
method; which
typically counts 'cores' in multi-core systems. This checking and therefore this exception is typically turned-off in DeltaXML
Enterprise licenses. Please see our licensing Q&A for a discussion of disabling CPUs and virtualization.
Modifier | Constructor and Description |
---|---|
protected |
CPULimitException(int currentCoreCount,
int coreLimit)
Constructs a new CPULimitException appropriate for use in the DeltaXML code.
|
Modifier and Type | Method and Description |
---|---|
int |
getCoreLimit()
Reports the number of cores the currently license allows.
|
int |
getCurrentCoreCount()
Reports the number of cores on the current system.
|
protected CPULimitException(int currentCoreCount, int coreLimit)
currentCoreCount
- The number of cores on the current system.coreLimit
- The core limit associated with the activated license.public int getCurrentCoreCount()
public int getCoreLimit()
Copyright © 2001-2016 DeltaXML Ltd. All Rights Reserved.